diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2011-08-25 13:23:52 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2011-08-25 13:23:52 +0200 |
commit | 097260607255ebe10aae7f64a53a5f7faabe7c1d (patch) | |
tree | e6630ba9c853c2643c2b4ee6c89a33fc279406cd /apps/bookmarks/bookmarksHelper.php | |
parent | e0a69bbeaccf45ec6f407090d3dfc50bc4f04101 (diff) | |
download | nextcloud-server-097260607255ebe10aae7f64a53a5f7faabe7c1d.tar.gz nextcloud-server-097260607255ebe10aae7f64a53a5f7faabe7c1d.zip |
fix: URLs without protocol are now linked to via HTTP
Diffstat (limited to 'apps/bookmarks/bookmarksHelper.php')
-rw-r--r-- | apps/bookmarks/bookmarksHelper.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/bookmarks/bookmarksHelper.php b/apps/bookmarks/bookmarksHelper.php index be6ac098d0f..383a8ddd565 100644 --- a/apps/bookmarks/bookmarksHelper.php +++ b/apps/bookmarks/bookmarksHelper.php @@ -7,6 +7,7 @@ function getURLMetadata($url) { if(preg_match($protocols, $url) == 0) { $url = 'http://' . $url; } + $metadata['url'] = $url; $page = file_get_contents($url); @preg_match( "/<title>(.*)<\/title>/si", $page, $match ); |