Remove Backslashes
by Scott Lahteine · in Site Feedback · 12/03/2006 (8:04 pm) · 0 replies
Hi Guys,
I love your site - the style, the forums, the tutorials, the wiki, and the email notifications are top-notch.
But please take a day and fix all the code that leaves backslashes everywhere! There are several places within the site where unnecessary backslashes are displayed, and the thread email notifications are full of backslashes as well.
It's such an easy thing to avoid. There are four places you can target to fix this once and for all:
1. Make sure magic_quotes_gpc is turned off in your php.ini file, unless your code depends on it.
2. If magic_quotes_gpc must be on, then don't call addslashes() in your php code.
3. Only use addslashes and addcslashes when preparing strings for a database insert/update. It is the only appropriate use of these functions.
4. For the existing text in the database, do a global replace of all single backslashes - (and replace double backslashes with a single backslash).
I'm sure the community would be grateful if you took the extra time to address this long-standing issue. It would make the GG experience feel a lot more complete and polished.
As a starting point, here are the usual "problematic" 'characters' for your \web guy\ to play with!
I love your site - the style, the forums, the tutorials, the wiki, and the email notifications are top-notch.
But please take a day and fix all the code that leaves backslashes everywhere! There are several places within the site where unnecessary backslashes are displayed, and the thread email notifications are full of backslashes as well.
It's such an easy thing to avoid. There are four places you can target to fix this once and for all:
1. Make sure magic_quotes_gpc is turned off in your php.ini file, unless your code depends on it.
2. If magic_quotes_gpc must be on, then don't call addslashes() in your php code.
3. Only use addslashes and addcslashes when preparing strings for a database insert/update. It is the only appropriate use of these functions.
4. For the existing text in the database, do a global replace of all single backslashes - (and replace double backslashes with a single backslash).
I'm sure the community would be grateful if you took the extra time to address this long-standing issue. It would make the GG experience feel a lot more complete and polished.
As a starting point, here are the usual "problematic" 'characters' for your \web guy\ to play with!