site fix

All timestamps are based on your local time of:

Posted by: stak
Posted on: 2005-11-28 01:00:52

i was working on adding some new stuff to this site, when i finally figured out something that has been bugging me for a while.. apparently the default install of PHP comes with the magic_quotes_gpc enabled. this means that quotes in any form data submitted to PHP is automagically escaped with backslashes. as i didn't know this before, i had been randomly adding stripslashes() to variables whenever i noticed the extra slashes. armed with this new information, however, i was able to go through my code and fix it up so that everything is consistent and i only call stripslashes() where i need to.

the problem is that a lot of the data in the mysql database also needed to stripslash'd, and i had to do that manually (running the SQL query for each table), which is error-prone.. so, if anybody sees any extra backslashes (\) floating around on the website that shouldn't be there, let me know so that i can fix it.

Posted by Crypto at 2005-12-04 13:06:15
I think the escapes for double quotes are there.
[ Reply to this ]
Posted by Crypto at 2005-12-04 13:08:14
To clarify
Double quotes for comments.
See my Happy Birthday one...
[ Reply to this ]
Posted by stak at 2005-12-04 16:55:17
Thanks.. good catch. Forgot to check for \" as well as \".
[ Reply to this ]

[ Add a new comment ]

(c) Kartikaya Gupta, 2004-2024. User comments owned by their respective posters. All rights reserved.
You are accessing this website via IPv4. Consider upgrading to IPv6!