]> git.ipfire.org Git - ipfire-2.x.git/commit
dns.cgi: Add use Encode + encode back to UTF-8
authorAdolf Belka <adolf.belka@ipfire.org>
Wed, 13 Mar 2024 22:12:12 +0000 (23:12 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 14 Mar 2024 09:24:33 +0000 (09:24 +0000)
commitcd7a901109751cfa28b7cae01e04192aa17232b4
tree6f1b8bdf1a0fac622748ab31c04caf4d8c3a5152
parent09924d7eec602353d2e585639572f49002e58bee
dns.cgi: Add use Encode + encode back to UTF-8

- use Encode was missed out in the previous patch for dns.cgi This would mean that the
   decode from UTF-8 would fail. I had tested the previous change but forgot to copy across
   the use Encode line when I created the patch.
- This patch adds an encode back to UTF-8 after running the cleanhtml command. This way
   the text is decoded from UTF-8 so that the cleanhtml command works correctly on
   umlauted characters and then is encoded back to UTF-8 so that all text in the cgi page
   is UTF-8.

Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/dns.cgi