Skip to content

Instantly share code, notes, and snippets.

@dmyersturnbull
Created June 14, 2016 01:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmyersturnbull/4f70b90f9e28a96b98570940d3dc2f31 to your computer and use it in GitHub Desktop.
Save dmyersturnbull/4f70b90f9e28a96b98570940d3dc2f31 to your computer and use it in GitHub Desktop.
Julia string interpolation security experiments.
# 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