Created
June 14, 2016 01:23
-
-
Save dmyersturnbull/4f70b90f9e28a96b98570940d3dc2f31 to your computer and use it in GitHub Desktop.
Julia string interpolation security experiments.
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
# This prints thisismypassword: | |
password = "thisismypassword" | |
function display_post(post_text) | |
println("<p>$post_text</p>") | |
end | |
display_post("$pass" * "word") | |
# This doesn't when given $password (escaped) as an argument: | |
display_post(ARGS[1]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment