parse_url: add missing scheme unless url begins with '/'

This commit is contained in:
friendica 2013-07-16 01:14:23 -07:00
parent d875bbb022
commit 26fa2b105d
2 changed files with 5 additions and 1 deletions

View File

@ -232,6 +232,10 @@ function parse_url_content(&$a) {
else
$url = trim($_GET['url']);
if((substr($url,0,1) != '/') && (substr($url,0,4) != 'http'))
$url = 'http://' . $url;
if($_GET['title'])
$title = strip_tags(trim($_GET['title']));

View File

@ -1 +1 @@
2013-07-15.375
2013-07-16.376