[dokuwiki] New PR: obfuscate: use utf8_tohtml for hex mode encoding

  • From: "phy25" <wiki@xxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Fri, 11 Jan 2019 22:37:07 +0100 (CET)

Hi,

phy25 opened a new pull request at 
https://github.com/splitbrain/dokuwiki/pull/2671:

This fixes #2665.

Note that obfuscate's output for "regular" char (codepoint < 2bytes) has also 
changed (before hex, now decimal), due to [the current behavior of 
`utf8_tohtml()`](https://github.com/splitbrain/dokuwiki/blob/debc52aabb80cdc05782261d7eee86b03b8e32f2/inc/utf8.php#L575-L586).
 In this case, the config value "hex" doesn't mean "hex" anymore, but it still 
obfuscates characters as numbers, as expected (see changed 
`common_obfuscate.test.php`). **It might need doc update to explain hex is no 
longer "hex" if this gets accepted.**

Please help us to review this pull request, so new contributors get feedback in 
a timely manner.

0aa79970-15e9-11e9-8461-c4a7779e3c05


-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts:

  • » [dokuwiki] New PR: obfuscate: use utf8_tohtml for hex mode encoding - phy25