View Full Version : htaccess file turn off magic quotes one page only
03-07-2009, 02:05 AM
So I was going to turn off magic quotes for my entire site but I really don't have the time to update the entire site. I actually only need magic quotes on one webform and was wondering if there is something I can write in my htaccess file that turns magic quotes off on only that page.
03-07-2009, 03:40 AM
You really should update the code, magic_quotes_gpc will be removed as of PHP6, and is an unreliable means to protect you're input data.
Anyway, using an htaccess and a Files directive:
php_flag magic_quotes_gpc off
Simple as that.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.