mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 19:34:27 +02:00
- escape Smarty error messages to avoid possible script execution
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2012-09-24 Uwe Tews
|
||||||
|
|
||||||
|
* Fixed escape Smarty error messages to avoid possible script execution
|
||||||
|
|
||||||
|
|
||||||
2010-04-17 Uwe Tews
|
2010-04-17 Uwe Tews
|
||||||
|
|
||||||
* Fixed security hole in {math} plugin
|
* Fixed security hole in {math} plugin
|
||||||
|
@@ -1090,7 +1090,8 @@ class Smarty
|
|||||||
*/
|
*/
|
||||||
function trigger_error($error_msg, $error_type = E_USER_WARNING)
|
function trigger_error($error_msg, $error_type = E_USER_WARNING)
|
||||||
{
|
{
|
||||||
trigger_error("Smarty error: $error_msg", $error_type);
|
$msg = htmlentities($error_msg);
|
||||||
|
trigger_error("Smarty error: $msg", $error_type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user