Author: chabotc
Date: Tue Sep 1 10:59:44 2009
New Revision: 809968
URL: http://svn.apache.org/viewvc?rev=809968&view=rev
Log:
SHINDIG-1156 by Arne Roomann-Kurrik, Warn users if their magic_quotes_gpc is on
Modified:
incubator/shindig/trunk/php/index.php
Modified: incubator/shindig/trunk/php/index.php
URL:
http://svn.apache.org/viewvc/incubator/shindig/trunk/php/index.php?rev=809968&r1=809967&r2=809968&view=diff
==============================================================================
--- incubator/shindig/trunk/php/index.php (original)
+++ incubator/shindig/trunk/php/index.php Tue Sep 1 10:59:44 2009
@@ -41,6 +41,10 @@
die("Shindig requires the {$module} extention, see <a
href='http://www.php.net/{$module}'>http://www.php.net/{$module}</a> for more
info");
}
}
+
+ if (get_magic_quotes_gpc()) {
+ die("Your environment has magic_quotes_gpc enabled which will interfere
with Shindig. Please set 'magic_quotes_gpc' to 'Off' in php.ini");
+ }
}
// All configurable classes are autoloaded (see config.php for the
configurable classes)