mirror of
https://github.com/owncloud/bookmarks.git
synced 2025-02-02 02:52:10 +01:00
Update bookmarkcontroller.php
This commit is contained in:
parent
a08b252564
commit
b6048dd3a8
@ -74,7 +74,7 @@ class BookmarkController extends ApiController {
|
||||
if (preg_match($protocols, $url)) {
|
||||
$datas = Bookmarks::getURLMetadata($url);
|
||||
// if not (allowed) protocol is given, assume http and https (and fetch both)
|
||||
} elseif (! preg_match($protocols, $url)) {
|
||||
} else {
|
||||
// append https to url and fetch it
|
||||
$url_https = 'https://' . $url;
|
||||
$datas_https = Bookmarks::getURLMetadata($url_https);
|
||||
|
Loading…
x
Reference in New Issue
Block a user