diff options
author | tuscanhobbit <tuscanhobbit@users.noreply.github.com> | 2014-09-28 23:17:47 +0200 |
---|---|---|
committer | tuscanhobbit <tuscanhobbit@users.noreply.github.com> | 2014-09-28 23:17:47 +0200 |
commit | f104dc840c79f4ea666a85033bffbf4a33d06f4e (patch) | |
tree | f1fce3898b757e3a29e928cc1afe724edb620471 /include/follow.php | |
parent | 6e141a8a53ba6cb7d91b989985744fdcd3d6f13d (diff) | |
parent | eaf96f987a5f22a54fdbb4cedef52b0159a37ad0 (diff) | |
download | volse-hubzilla-f104dc840c79f4ea666a85033bffbf4a33d06f4e.tar.gz volse-hubzilla-f104dc840c79f4ea666a85033bffbf4a33d06f4e.tar.bz2 volse-hubzilla-f104dc840c79f4ea666a85033bffbf4a33d06f4e.zip |
Merge from origin
Diffstat (limited to 'include/follow.php')
-rw-r--r-- | include/follow.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/follow.php b/include/follow.php index 38525982e..a967386e9 100644 --- a/include/follow.php +++ b/include/follow.php @@ -19,6 +19,9 @@ function new_contact($uid,$url,$channel,$interactive = false, $confirm = false) $is_red = false; $is_http = ((strpos($url,'://') !== false) ? true : false); + if($is_http && substr($url,-1,1) === '/') + $url = substr($url,0,-1); + if(! allowed_url($url)) { $result['message'] = t('Channel is blocked on this site.'); return $result; |