parse_url: add missing scheme unless url begins with '/'
This commit is contained in:
parent
d875bbb022
commit
26fa2b105d
@ -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']));
|
||||
|
||||
|
@ -1 +1 @@
|
||||
2013-07-15.375
|
||||
2013-07-16.376
|
||||
|
Reference in New Issue
Block a user