Skip to content
Permalink
Browse files Browse the repository at this point in the history
TemplateHelper: fix XSS if Symfony dumper is not available
  • Loading branch information
denis-sokolov committed Nov 17, 2017
1 parent 1ae2243 commit c16791d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Whoops/Util/TemplateHelper.php
Expand Up @@ -183,7 +183,7 @@ public function dump($value)
return $output;
}

return print_r($value, true);
return htmlspecialchars(print_r($value, true));
}

/**
Expand Down

0 comments on commit c16791d

Please sign in to comment.