mirror of
https://github.com/filp/whoops.git
synced 2026-09-03 05:57:12 +00:00
Fixed XXS vulnerability in plainText rendered content. Closes #497.
This commit is contained in:
@@ -258,7 +258,7 @@ class PrettyPageHandler extends Handler
|
||||
$plainTextHandler = new PlainTextHandler();
|
||||
$plainTextHandler->setException($this->getException());
|
||||
$plainTextHandler->setInspector($this->getInspector());
|
||||
$vars["preface"] = "<!--\n\n\n" . $plainTextHandler->generateResponse() . "\n\n\n\n\n\n\n\n\n\n\n-->";
|
||||
$vars["preface"] = "<!--\n\n\n" . $this->templateHelper->escape($plainTextHandler->generateResponse()) . "\n\n\n\n\n\n\n\n\n\n\n-->";
|
||||
|
||||
$this->templateHelper->setVariables($vars);
|
||||
$this->templateHelper->render($templateFile);
|
||||
|
||||
Reference in New Issue
Block a user