Use htmlentities on the error message when dying because the string will be sent to the browser and if it includes scripts they will be run.
This commit is contained in:
parent
75b8c35059
commit
42fdd1fbe9
|
@ -528,7 +528,7 @@ function Error( $string )
|
|||
function Fatal( $string )
|
||||
{
|
||||
Logger::fetch()->logPrint( Logger::FATAL, $string );
|
||||
die( $string );
|
||||
die( htmlentities($string) );
|
||||
}
|
||||
|
||||
function Panic( $string )
|
||||
|
|
Loading…
Reference in New Issue