From c2c07e6199bea82fbf3fb2fa7b74959be73012a9 Mon Sep 17 00:00:00 2001 From: steveminutillo Date: Sun, 10 Jun 2007 04:52:09 +0000 Subject: [PATCH] I &heart; PHP --- fof-main.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fof-main.php b/fof-main.php index fc34ff0..e0bd8be 100644 --- a/fof-main.php +++ b/fof-main.php @@ -713,9 +713,11 @@ function fof_todays_date() return gmdate( "Y/m/d", time() + ($offset * 60 * 60) ); } -// thanks to submitter of http://bugs.php.net/bug.php?id=39859 function fof_repair_drain_bamage() { + if (ini_get('register_globals')) foreach($_REQUEST as $k=>$v) { unset(${$k}); } + + // thanks to submitter of http://bugs.php.net/bug.php?id=39859 if (get_magic_quotes_gpc()) { function undoMagicQuotes($array, $topLevel=true) { $newArray = array();