issue with mentions and xchans with @ or /

This commit is contained in:
zotlabs 2017-08-30 16:24:26 -07:00
parent f1b014b7eb
commit be097bf415
2 changed files with 2 additions and 4 deletions

View File

@ -326,9 +326,7 @@ class Acl extends \Zotlabs\Web\Controller {
if($r) {
foreach($r as $g){
// remove RSS feeds from ACLs - they are inaccessible
if(strpos($g['hash'],'/') && $type != 'a')
continue;
$g['hash'] = urlencode($g['hash']);
if(in_array($g['hash'],$permitted) && $type == 'c' && (! $noforums)) {
$contacts[] = array(

View File

@ -2485,7 +2485,7 @@ function handle_tag($a, &$body, &$access_tag, &$str_tags, $profile_uid, $tag, $d
if(($t2) && (! $diaspora)) {
//get the id
$tagcid = substr($newname,$t2 + 1);
$tagcid = urldecode(substr($newname,$t2 + 1));
if(strrpos($tagcid,' '))
$tagcid = substr($tagcid,0,strrpos($tagcid,' '));