urlencode hashes from mod_acl

This commit is contained in:
zotlabs 2017-10-03 15:36:56 -07:00
parent 9cf9217686
commit 58155864cb
2 changed files with 3 additions and 3 deletions

View File

@ -343,7 +343,7 @@ class Acl extends \Zotlabs\Web\Controller {
"photo" => "images/twopeople.png",
"name" => $g['name'] . (($type === 'f') ? '' : '+'),
"id" => $g['id'] . (($type === 'f') ? '' : '+'),
"xid" => $g['hash'],
"xid" => urlencode($g['hash']),
"link" => $g['nick'],
"nick" => substr($g['nick'],0,strpos($g['nick'],'@')),
"self" => (intval($g['abook_self']) ? 'abook-self' : ''),
@ -357,7 +357,7 @@ class Acl extends \Zotlabs\Web\Controller {
"photo" => $g['micro'],
"name" => $g['name'],
"id" => $g['id'],
"xid" => $g['hash'],
"xid" => urlencode($g['hash']),
"link" => $g['nick'],
"nick" => (($g['nick']) ? substr($g['nick'],0,strpos($g['nick'],'@')) : $g['nick']),
"self" => (intval($g['abook_self']) ? 'abook-self' : ''),

View File

@ -2412,7 +2412,7 @@ function handle_tag($a, &$body, &$access_tag, &$str_tags, $profile_uid, $tag, $d
}
if(! $replaced) {
//base tag has the tags name only
// base tag has the tags name only
if((substr($tag,0,7) === '#"') && (substr($tag,-6,6) === '"')) {
$basetag = substr($tag,7);