From 36c0dbadcddea1e3867c48e36d57b11ba9c4c4cb Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sat, 14 May 2011 06:16:08 +0000 Subject: [PATCH] Test: convert all POST or GET to variable ( $__var ) --- htdocs/main.inc.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 66de6ee6ef0..9515f7a858a 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -152,6 +152,17 @@ function processError($code, $message, $file, $line, $context) set_error_handler('processError'); */ +// GET and POST converter +/* +foreach($_REQUEST as $key => $value) +{ + // For prevent conflict + $var = '__'.$key; + // Create variable with tested value + $$var = GETPOST($key); +} +*/ + // Activate end of page function register_shutdown_function('dol_shutdown');