Last active
August 10, 2017 13:14
-
-
Save chrisdpeters/0141ffd2404ecd126f04e16172271a89 to your computer and use it in GitHub Desktop.
Never output anything to a browser without a formatting filter http://blog.chrisdpeters.com/formatting-filter/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1> | |
<a href="/posts/fart"><script>>alert('All your base are belong to us!');</script></a> | |
</h1> | |
<p class="post-meta"> | |
<script>sendCookieInfoToAnotherServer = function() { /* ... */ }; sendCookieInfoToAnotherServer();</script> | |
</p> | |
<h2>Banana Comments</h2> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1> | |
<a href="/posts/fart"><script>alert('All your base are belong to us!');</script></a> | |
</h1> | |
<p class="post-meta"> | |
<script>sendCookieInfoToAnotherServer = function() { /* ... */ }; sendCookieInfoToAnotherServer();</script> | |
</p> | |
<h2>Banana Comments</h2> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfoutput> | |
<h1> | |
#linkTo(text=h(post.title), route="post", key=h(post.key()))# | |
</h1> | |
<p class="post-meta"> | |
#DateFormat(post.publishedAt)# | |
</p> | |
<h2>#NumberFormat(post.commentsCount)# Comments</h2> | |
</cfoutput> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfoutput> | |
<h1> | |
#linkTo(text=post.title, route="post", key=post.key())# | |
</h1> | |
<p class="post-meta"> | |
#post.publishedAt# | |
</p> | |
<h2>#post.commentsCount# Comments</h2> | |
</cfoutput> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment