wiki double encoding html entities

This commit is contained in:
zotlabs 2017-10-04 16:37:14 -07:00
parent d6b1eff70e
commit 80ca99fe5b
2 changed files with 3 additions and 1 deletions

View File

@ -94,7 +94,7 @@ class MarkdownSoap {
} }
function escape($s) { function escape($s) {
return htmlspecialchars($s,ENT_QUOTES); return htmlspecialchars($s,ENT_QUOTES,'UTF-8',false);
} }
static public function unescape($s) { static public function unescape($s) {

View File

@ -168,6 +168,8 @@ class Comanche {
return $y['xchan_addr']; return $y['xchan_addr'];
elseif($x[1] == 'name') elseif($x[1] == 'name')
return $y['xchan_name']; return $y['xchan_name'];
elseif($x[1] == 'webname')
return substr($y['xchan_addr'],0,strpos($y['xchan_addr'],'@'));
return false; return false;
} }
return get_observer_hash(); return get_observer_hash();