Skip to content

Conversation

@ulidtko
Copy link

@ulidtko ulidtko commented Mar 11, 2025

Cześć @mgeeky ! Thanks for this script, super useful. 🙏

A simple drive-by fix here, in html export:

  • If the sample under analysis contains a full-blown <html>...</html> blob — interpolating it right into the output report html is not good enough; it should go through html.escape() first.

Otherwise, contents of email sample bleed out of the Original SMTP Headers spoiler, wrecking the report:

image

And on the same sample, fixed:

image

Hoping for easy merge, HTH

</code>
<code><pre>
{escape(headers)}
</pre></code>
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The added wrapping into <pre> allows to simply ditch the \n<br/>\n shenanigans — within <pre>, the contained (html-escaped) html blob will render as-is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant