Skip to content

Commit 123eba8

Browse files
committed
Use internal html special chars
1 parent f07385d commit 123eba8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

event/listener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,8 @@ protected function can_use_notifications()
368368
*/
369369
protected function trim_shortname($name)
370370
{
371-
$decoded = ext::decode_entities($name, ENT_QUOTES);
371+
$decoded = ext::decode_entities($name, ENT_COMPAT);
372372
$trimmed = utf8_substr($decoded, 0, 12);
373-
return htmlspecialchars($trimmed, ENT_QUOTES, 'UTF-8');
373+
return utf8_htmlspecialchars($trimmed);
374374
}
375375
}

0 commit comments

Comments
 (0)