]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/commit
header.pl: Add utf-8 handling into cleanhtml command
authorAdolf Belka <adolf.belka@ipfire.org>
Mon, 17 Jun 2024 11:12:35 +0000 (13:12 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 2 Jul 2024 09:13:10 +0000 (09:13 +0000)
commiteef090c3de39f6a625a07f44d6f133729dd165fd
tree47f945ee0789c1d14cc9c43c60ad1268a6c74420
parent82804949302e3cbb72f2c2b888111878d19f5405
header.pl: Add utf-8 handling into cleanhtml command

- existing cleanhtml command does not handle diacritical charcters such as umlauts, acute,
   grave and circumflex accents.
- In bug 12395 the problem was resolved by adding decode before and encode after the
   cleanhtml command in dns.cgi
- Suggestion from @Michael Tremer was to add the decode and encode sections into the
   actual cleanhtml subroutine in header.pl
- This patch submission is the execution of that suggestion.
- This will ensure that whenever cleanhtml is used for any remark in a WUI page it will
   handle diacritical charcters.
- Tested out on my vm testbed system and confirmed to be working when cleanhtml has the
   encode and decode lines.
- Combined with this patch is another one that changes the dns.cgi to remove the decode
   and encode entries added into the cgi code.

Suggested-by: Michael Tremer <michael.tremer@ipfire.org>
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>
config/cfgroot/header.pl