diff options
author | friendica <info@friendica.com> | 2013-07-16 01:14:23 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-07-16 01:14:23 -0700 |
commit | 26fa2b105d1520d7ee41d4385903628b2f6443a4 (patch) | |
tree | 3ba1cfbbb5753baf5ce08c08872ad54e0142a031 | |
parent | d875bbb022dc7bbf4acc05ecefe5da77667d0f33 (diff) | |
download | volse-hubzilla-26fa2b105d1520d7ee41d4385903628b2f6443a4.tar.gz volse-hubzilla-26fa2b105d1520d7ee41d4385903628b2f6443a4.tar.bz2 volse-hubzilla-26fa2b105d1520d7ee41d4385903628b2f6443a4.zip |
parse_url: add missing scheme unless url begins with '/'
-rw-r--r-- | mod/parse_url.php | 4 | ||||
-rw-r--r-- | version.inc | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/mod/parse_url.php b/mod/parse_url.php index 783390f27..c206c24ec 100644 --- a/mod/parse_url.php +++ b/mod/parse_url.php @@ -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'])); diff --git a/version.inc b/version.inc index 877674587..2c1e5158a 100644 --- a/version.inc +++ b/version.inc @@ -1 +1 @@ -2013-07-15.375 +2013-07-16.376 |