diff options
author | zeripath <art27@cantab.net> | 2021-01-20 15:10:50 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-20 23:10:50 +0800 |
commit | 172229966c9c69305d7b6b9b69552346343fe270 (patch) | |
tree | 236fc5892fee943d2dc6bd882b423a5eab46264c /routers | |
parent | b708968694841cb1df6038eaabb880d0fe59a7f4 (diff) | |
download | gitea-172229966c9c69305d7b6b9b69552346343fe270.tar.gz gitea-172229966c9c69305d7b6b9b69552346343fe270.zip |
Prevent panic on fuzzer provided string (#14405)
* Prevent panic on fuzzer provided string
The fuzzer has found that providing a <body> tag with an attribute to
PostProcess causes a panic. This PR removes any rendered html or body
tags from the output.
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Placate lint
* placate lint again
Signed-off-by: Andrew Thornton <art27@cantab.net>
* minor cleanup
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'routers')
0 files changed, 0 insertions, 0 deletions