Skip to content

Bad HTML escaping in footer #6768

@itkfm

Description

@itkfm

Contribution guidelines

I've found a bug and checked that ...

  • ... I understand that not following the below instructions will result in immediate closure and/or deletion of my issue.
  • ... I have understood that this bug report is dedicated for bugs, and not for support-related inquiries.
  • ... I have understood that answers are voluntary and community-driven, and not commercial support.
  • ... I have verified that my issue has not been already answered in the past. I also checked previous issues.

Description

While the customizable footer claims to support HTML, escaping is run over it which breaks certain elements.

  • & is misescaped as &nzc;.
  • & is valid HTML yet gets transformed to &nzc;amp;

Logs:

*n/a*

Steps to reproduce:

  1. Log in to the admin portal.
  2. Navigate to /admin/system.
  3. Go to OptionsCustomize.
  4. Scroll down to the text area labeled Footer (HTML allowed).
  5. Enter something like foo & bar.
  6. Hit Save changes.

Which branch are you using?

master

Which architecture are you using?

x86

Operating System:

Debian 12

Server/VM specifications:

8 GB RAM, 8 GB Swap, 4 vCores

Is Apparmor, SELinux or similar active?

yes

Virtualization technology:

KVM

Docker version:

28.4.0

docker-compose version or docker compose version:

v2.39.2

mailcow version:

2025-09b

Reverse proxy:

none

Logs of git diff:

*n/a*

Logs of iptables -L -vn:

*n/a*

Logs of ip6tables -L -vn:

*n/a*

Logs of iptables -L -vn -t nat:

*n/a*

Logs of ip6tables -L -vn -t nat:

*n/a*

DNS check:

104.18.32.7
172.64.155.249

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions