summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2010-11-03 16:32:23 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2010-11-03 16:32:23 +1100
commite1f36dfe9abd309fef2d08d2d82ae350b2501c7f (patch)
tree47bd426cfa0b9000147846c12fd914d864927cca
parent7181634dcbeaba0375e91237f285f619e510bf65 (diff)
Fix again for magic quotes.
-rw-r--r--post.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/post.php b/post.php
index 9016173e..ae980e9b 100644
--- a/post.php
+++ b/post.php
@@ -17,9 +17,10 @@
function strip_array(&$var) {
return is_array($var) ? array_map("strip_array", $var) : stripslashes($var);
}
- strip_array($_SESSION);
- strip_array($_GET);
- strip_array($_POST);
+
+ $_SESSION = strip_array($_SESSION);
+ $_GET = strip_array($_GET);
+ $_POST = strip_array($_POST);
}
if(isset($_POST['post'])) {