The function xmlSpecChars in modules/Internal/Basic.pm would not
correctly replace two successive ampersand signs. The matching group
(^[#]|\Z) would consume the second '&'. Fix the issue by using a
negative assertion to lookahead in the string without consuming the
matched charcters.
The function xmlSpecChars in modules/Internal/Basic.pm would not correctly replace two successive ampersand signs. The matching group (^[#]|\Z) would consume the second '&'. Fix the issue by using a negative assertion to lookahead in the string without consuming the matched charcters.