fix url mismatches of a single trailing slash for feed author/owner comparisons; update diaspora_compat

This commit is contained in:
friendica
2014-09-23 20:55:22 -07:00
parent 02210b81d8
commit 81ee35e03b
4 changed files with 10 additions and 15 deletions

View File

@@ -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;