Simple String error, String breaking from ' in var -


the parsing of user name has ' inside of user name , think causing code break when set

tempusername=request.form("username")

if (request.form("action") = "login")     tempusername=request.form("username")     temppassword=request.form("userpassword") 

is assumption right? if solution this?

jumping onto comment james, answering question:

input sanitization issue in every language. if there weren't ' characters in usernames, code danger++

at least, run data request.form through function escapes/sanitizes dangerous characters in context of data getting passed on (such data stores or dir-resolving code).

as code using <%, that's sign asp script, , syntax looks it's vb. (request.form("action") = "login") in particular dead give-away, because no sane programming language since 80s uses "=" equality testing operator =)


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -