Error can possibly contain html chars and should be escaped

This commit is contained in:
Michal Čihař
2012-03-02 11:16:19 +01:00
parent 50dd391262
commit 656809ac3b

View File

@@ -116,7 +116,7 @@ class PMA_Error_Handler
public function handleError($errno, $errstr, $errfile, $errline)
{
// create error object
$error = new PMA_Error($errno, $errstr, $errfile, $errline);
$error = new PMA_Error($errno, htmlspecialchars($errstr), $errfile, $errline);
// do not repeat errors
$this->_errors[$error->getHash()] = $error;