1
0
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:
TtuxX 2015-01-05 18:50:32 +01:00
parent a08b252564
commit b6048dd3a8

View File

@ -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);