Created
January 16, 2025 17:38
-
-
Save helmetwearer/e0a70581a3abf44f2d33f821b3eb8011 to your computer and use it in GitHub Desktop.
Django Template Shenanigans
This file contains hidden or 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> Watch a comment do magic </> | |
<!-- Surely this is just a harmless comment {% block wtf %}alert('completely harmless');{% endblock %} | |
I mean, why would an html comment be able to function on a page?--> |
This file contains hidden or 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
<script> | |
{% block wtf %} | |
{% endblock wtf %} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment