Since you already know that the encoding is handled for you, why the question?Originally posted by Alan Cavanagh:
I know forms are implicitly encoded and decoded. So do i need to encode/decode these values server side?
No. Also handled for you.Should I encode/decode any parameters taken in from the URL?
You are storing URLs in the database?Should I store encoded values in the database. I was told this is best practice?
I can't make head or tails of this. It sounds as if you may be confusing URL encoding with HTML encoding.Also I was told to decode anything first and then encode as a hacker may encode his attempted javascript injected attack. So by decoding first then encoding the data you render his attack useless?
Again, the URL encoding has absolutely nothing to do with security. Do not confuse encoding with encryption. If you want security, that's where SSL comes in.Originally posted by Alan Cavanagh:
Forms are implicitly encoded/decoded. But from a security perspective do I need to check for anything sever side?
Then you don't need to worry about URL encoding. No URLs, no URL encoding.As for storing data. I wont be storing URLS.
No. Again, URL encoding will do nothing for you with regards to security or hacking or anything along those line.Do I store the encoded version on my database?
Depends how the URLs are being generated. In JavaScript? In Java? With the JSTL?So im guessing I would have to encode those links?
To encode text data so that it doesn't interfere with HTML parsing. For example, putting angle brackets in your text can boof up the HTML parsing, so those characters must be encoding to display correctly.Im not sure what HTML encoding is for though?
Originally posted by Bear Bibeault:
To encode text data so that it doesn't interfere with HTML parsing. For example, putting angle brackets in your text can boof up the HTML parsing, so those characters must be encoding to display correctly.
[ August 25, 2008: Message edited by: Bear Bibeault ]
Don't get me started about those stupid light bulbs. |