diff options
author | friendica <info@friendica.com> | 2014-09-23 20:55:22 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-09-23 20:55:22 -0700 |
commit | 81ee35e03bc45bc80aaabb9416bdee2968b8f504 (patch) | |
tree | 2382e7fc62713b5a9828a25aeccac15d40852165 /include/follow.php | |
parent | 02210b81d8c68db354ef3e33b903fb9d1605df7e (diff) | |
download | volse-hubzilla-81ee35e03bc45bc80aaabb9416bdee2968b8f504.tar.gz volse-hubzilla-81ee35e03bc45bc80aaabb9416bdee2968b8f504.tar.bz2 volse-hubzilla-81ee35e03bc45bc80aaabb9416bdee2968b8f504.zip |
fix url mismatches of a single trailing slash for feed author/owner comparisons; update diaspora_compat
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; |