Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Make sure to xmlEntities() the CONF_MESSAGE and MIXIN_MESSAGE values …
Browse files Browse the repository at this point in the history
…as we are inside attributes.
  • Loading branch information
cdujeu committed Dec 11, 2014
1 parent bc0cb95 commit adcc9f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/core/classes/class.AJXP_XMLWriter.php
Expand Up @@ -300,7 +300,7 @@ public static function replaceAjxpXmlKeywords($xml, $stripSpaces = false)
if (array_key_exists($messId, $confMessages)) {
$message = $confMessages[$messId];
}
$xml = str_replace("CONF_MESSAGE[$messId]", $message, $xml);
$xml = str_replace("CONF_MESSAGE[$messId]", AJXP_Utils::xmlEntities($message), $xml);
}
}
if (preg_match_all("/MIXIN_MESSAGE(\[.*?\])/", $xml, $matches, PREG_SET_ORDER)) {
Expand All @@ -310,7 +310,7 @@ public static function replaceAjxpXmlKeywords($xml, $stripSpaces = false)
if (array_key_exists($messId, $confMessages)) {
$message = $confMessages[$messId];
}
$xml = str_replace("MIXIN_MESSAGE[$messId]", $message, $xml);
$xml = str_replace("MIXIN_MESSAGE[$messId]", AJXP_Utils::xmlEntities($message), $xml);
}
}
if ($stripSpaces) {
Expand Down

0 comments on commit adcc9f5

Please sign in to comment.