Skip to content

Commit

Permalink
Merge pull request #67 from dontub/master
Browse files Browse the repository at this point in the history
XmlParser: don't call utf8_encode()
  • Loading branch information
tufanbarisyildirim authored Feb 27, 2019
2 parents 9a100f5 + 45fcf63 commit 6c9e1e3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/ApkParser/XmlParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,8 @@ public function getXmlString()
if (!$this->ready) {
$this->decompress();
}
$xml = utf8_encode($this->xml);
$xml = preg_replace('/[\x00-\x08\x0B\x0C\x0E-\x1F\x80-\x9F]/u', '', $xml);
return $xml;

return preg_replace('/[\x00-\x08\x0B\x0C\x0E-\x1F\x80-\x9F]/u', '', $this->xml);
}

/**
Expand Down

0 comments on commit 6c9e1e3

Please sign in to comment.