You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Somebody sent a comment in my blog which injected some javascript. This may do some bad things, so I prevented it. This was very easy once I found out how the Transforms work.
Somebody sent a comment in my blog which injected some javascript. This may do some bad things, so I prevented it. This was very easy once I found out how the Transforms work.
I added these lines to lib/Transforms.js:
And then I just needed to activate that transform function for some fields in staticman.yml:
Now script tags do not get executed anymore and javascript event handlers get removed.
This may be something which others are also interested in.
The text was updated successfully, but these errors were encountered: