backslashes in url variables
Posted
by namtax
on Stack Overflow
See other posts from Stack Overflow
or by namtax
Published on 2010-06-07T18:53:07Z
Indexed on
2010/06/07
19:02 UTC
Read the original article
Hit count: 241
url
|coldfusion
Hi there
I have set up my coldfusion application to have dynamic urls on the page, such as
www.musicExplained/index.cfm/artist/:VariableName
However my variable names will sometimes contain backslashes, such as
www.musicExplained/index.cfm/artist/GZA/Genius
This is causing a problem, because my application presumes that the slash in the variable name represents a different section of the website, the artists albums. So the URL will fail.
I am wondering if there is anyway to prevent this from happening? Do I need to use a function that replaces slashes in the variable names with another character?
Thanks
© Stack Overflow or respective owner