pi-hole/web

Domain Description field incorrectly escapes certain unicode symbols

Closed this issue · 1 comments

Versions

Pi-hole version is v5.18.3 (Latest: v5.18.3)
web version is v5.21 (Latest: v5.21)
FTL version is v5.25.2 (Latest: v5.25.2)

Platform

docker (pihole/pihole:latest)

Bug

When entering a unicode symbol like ° (U+00B0, °, the degree sign) into the description field on the 'Domains' page(admin/groups-domains.php), the symbol is displayed as it's html escape string (°).

Steps to reproduce

  1. Go to the domains page (admin/groups-domains.php)
  2. Add a new domain where the description contains a °. (alternatively edit an existing one)

Expected Behavior

Like other description fields on the 'groups' or 'clients' pages, the value should not be escaped (these are <input> html elements).

Screenshot: Observed

Image

Screenshot: Expected

Image

Additional context

Ah, I just saw that #2279 / #2851 already adress this. I missed those earlier when searching for this. Please forgive me for the spam. Hopefully this at least helps the "SEO" for this problem :).
Thanks for the awesome software btw!