science-ation/.htaccess
dave 5e9ee05606 Apache/PHP seems to let us turn off magic quotes in the .htaccess. Yay.
magic quotes DEPRECATED as of PHP 5.3.0, REMOVE as of 6.0, on by
default for any PHP < 5.3.0.  Pain in the ASS.  php is running the
urldecode for us,  seeing that the string has quotes, then adding quotes before we
can json_decode().   It only does this in POST and GET
2010-04-18 22:40:05 +00:00

10 lines
224 B
ApacheConf

php_flag register_globals off
php_flag magic_quotes_gpc off
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-l
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^web/(.*)$ cms.php?f=$1 [L]