Index: branches/5.2.x/core/units/helpers/deployment_helper.php
===================================================================
diff -u -N -r15588 -r15601
--- branches/5.2.x/core/units/helpers/deployment_helper.php (.../deployment_helper.php) (revision 15588)
+++ branches/5.2.x/core/units/helpers/deployment_helper.php (.../deployment_helper.php) (revision 15601)
@@ -1,6 +1,6 @@
toLog($sql . ' ... ', false);
- echo mb_substr(trim(preg_replace('/(\n|\t| )+/is', ' ', ($this->isCommandLine ? $sql : htmlspecialchars($sql)))), 0, self::SQL_TRIM_LENGTH) . ' ... ';
+ echo mb_substr(trim(preg_replace('/(\n|\t| )+/is', ' ', ($this->isCommandLine ? $sql : htmlspecialchars($sql, null, CHARSET)))), 0, self::SQL_TRIM_LENGTH) . ' ... ';
$this->Conn->Query($sql);
@@ -563,7 +563,7 @@
$html_color = $html_color_map[$color][$bold ? 'bold' : 'normal'];
- return '' . htmlspecialchars($text) . '';
+ return '' . htmlspecialchars($text, null, CHARSET) . '';
}
/**
@@ -579,7 +579,7 @@
return "\033[1m" . $text . "\033[0m";
}
- return '' . htmlspecialchars($text) . '';
+ return '' . htmlspecialchars($text, null, CHARSET) . '';
}
/**
@@ -611,7 +611,7 @@
private function out($text, $new_line = false)
{
if ( !$this->isCommandLine ) {
- $text = htmlspecialchars($text);
+ $text = htmlspecialchars($text, null, CHARSET);
}
echo $text . ($new_line ? PHP_EOL : '');