Get TalkAlias only printable caracters

This commit is contained in:
CT2JAY 2017-03-06 22:26:15 +00:00
parent 6b6bd23375
commit 1da9ee8b82

View file

@ -262,8 +262,9 @@ function getHeardList($logLines, $onlyLast) {
}
if(strpos($logLine, "0000") > 0){
$decodedAlias = decodeAlias($logLine);
$decodedAlias = $decodedAlias = preg_replace('/[\x00-\x1F\x7F-\xA0\xAD]/u', '', decodeAlias($logLine));
if ($decodedAlias == "" && $alias =="") $decodedAlias="---";
else $alias = str_replace("---", "", $alias);
if ($alias =="")
$alias =$decodedAlias;
else