HomeClusterLabs Projects

Fix: libcrmcommon: Escape XML non-printing characters correctly as hex

Description

Fix: libcrmcommon: Escape XML non-printing characters correctly as hex

Fixes regression introduced in c6d9cea9.

That commit introduced pcmk__xml_escape(), which (among other things)
escapes non-printing characters as their hexadecimal character
references. However, a prefix of "#x" (instead of only "#") is required
to indicate that the number is in hex rather than decimal.

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Mar 4 2024, 2:03 PM
Parents
rPd18a497ebf48: Merge pull request #3381 from gao-yan/32-bit-magic-numbers
Branches
Unknown
Tags
Unknown