SOURCES: eventum-config.php - conditional dispelmagicquotes for th...

glen glen at pld-linux.org
Tue Jan 16 19:37:09 CET 2007


Author: glen                         Date: Tue Jan 16 18:37:08 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- conditional dispelmagicquotes for the sake of performance for sane setups

---- Files affected:
SOURCES:
   eventum-config.php (1.26 -> 1.27) 

---- Diffs:

================================================================
Index: SOURCES/eventum-config.php
diff -u SOURCES/eventum-config.php:1.26 SOURCES/eventum-config.php:1.27
--- SOURCES/eventum-config.php:1.26	Tue Jan 16 19:32:10 2007
+++ SOURCES/eventum-config.php	Tue Jan 16 19:37:03 2007
@@ -107,9 +107,11 @@
 include_once(APP_INC_PATH . 'class.misc.php');
 
 // fix magic_quote_gpc'ed values
-$_GET = Misc::dispelMagicQuotes($_GET);
-$_POST = Misc::dispelMagicQuotes($_POST);
-$_REQUEST = Misc::dispelMagicQuotes($_REQUEST);
+if (get_magic_quotes_gpc()) {
+    $_GET = Misc::dispelMagicQuotes($_GET);
+    $_POST = Misc::dispelMagicQuotes($_POST);
+    $_REQUEST = Misc::dispelMagicQuotes($_REQUEST);
+}
 
 Language::setup();
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/eventum-config.php?r1=1.26&r2=1.27&f=u



More information about the pld-cvs-commit mailing list