From 6f29907b4f684c2d8bdf3d1c380ae00d0227f2f8 Mon Sep 17 00:00:00 2001 From: haseobang <139593703+haseobang@users.noreply.github.com> Date: Wed, 13 Sep 2023 04:34:43 -0400 Subject: [PATCH] Fixed Error for HTML Output (#714) * Update file_html.go Fixed Error for HTML Output [ERR] template: output.html:74:94: executing "output.html" at <$result.HTMLColor>: can't evaluate field HTMLColor in type output.htmlResult * Update CONTRIBUTORS.md * Update CHANGELOG.md * Update CHANGELOG.md --------- Co-authored-by: Joona Hoikkala <5235109+joohoi@users.noreply.github.com> --- CONTRIBUTORS.md | 1 + pkg/output/file_html.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index c728da4..ca1fae6 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -19,6 +19,7 @@ * [eur0pa](https://github.com/eur0pa) * [fabiobauer](https://github.com/fabiobauer) * [fang0654](https://github.com/fang0654) +* [haseobang](https://github.com/haseobang) * [Hazegard](https://github.com/Hazegard) * [helpermika](https://github.com/helpermika) * [h1x](https://github.com/h1x-lnx) diff --git a/pkg/output/file_html.go b/pkg/output/file_html.go index 697e6ae..abc235a 100644 --- a/pkg/output/file_html.go +++ b/pkg/output/file_html.go @@ -108,7 +108,7 @@ const (
|result_raw|{{ $result.StatusCode }}{{ range $keyword, $value := $result.Input }}|{{ $value | printf "%s" }}{{ end }}|{{ $result.Url }}|{{ $result.RedirectLocation }}|{{ $result.Position }}|{{ $result.ContentLength }}|{{ $result.ContentWords }}|{{ $result.ContentLines }}|{{ $result.ContentType }}|{{ $result.Duration }}|{{ $result.ResultFile }}|{{ $result.ScraperData }}|{{ $result.FfufHash }}|
- + {{ $result.StatusCode }} {{ range $keyword, $value := $result.Input }} {{ $value | printf "%s" }}