Sanitize user input: Difference between revisions
Content added Content deleted
(→{{header|Wren}}: Added file(s), director(y|ies) to the blacklist.) |
m (→{{header|Phix}}: sp) |
||
Line 37: | Line 37: | ||
<span style="color: #7060A8;">puts</span><span style="color: #0000FF;">(</span><span style="color: #000000;">1</span><span style="color: #0000FF;">,</span><span style="color: #000000;">header</span><span style="color: #0000FF;">)</span> <span style="color: #000080;font-style:italic;">-- (make the example runnable)</span> |
<span style="color: #7060A8;">puts</span><span style="color: #0000FF;">(</span><span style="color: #000000;">1</span><span style="color: #0000FF;">,</span><span style="color: #000000;">header</span><span style="color: #0000FF;">)</span> <span style="color: #000080;font-style:italic;">-- (make the example runnable)</span> |
||
<!--</lang>--> |
<!--</lang>--> |
||
In other words I had to " |
In other words I had to "sanitize" a constant in the source code, in this particular case, and I could have gone further and done something similar with all the other tags.<br> |
||
In practice there was no need to because the generated JavaScript was already always inside a script tag. |
In practice there was no need to because the generated JavaScript was already always inside a script tag. |
||