Skip to content

Commit

Permalink
Fixed bug in anti magic quotes correcter.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hannes Landeholm committed Aug 3, 2011
1 parent ede131d commit 0a0bba6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/db/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ public static function beforeRequestProcess() {
$stripslashes_deep_fn = function($value) use (&$stripslashes_deep_fn) {
return is_array($value)? $stripslashes_deep_fn($value): stripslashes($value);
};
$_POST = \array_map('\melt\db\_stripslashes_deep', $stripslashes_deep_fn);
$_GET = \array_map('\melt\db\_stripslashes_deep', $stripslashes_deep_fn);
$_COOKIE = \array_map('\melt\db\_stripslashes_deep', $stripslashes_deep_fn);
$_REQUEST = \array_map('\melt\db\_stripslashes_deep', $stripslashes_deep_fn);
$_POST = \array_map($stripslashes_deep_fn, $_POST);
$_GET = \array_map($stripslashes_deep_fn, $_GET);
$_COOKIE = \array_map($stripslashes_deep_fn, $_COOKIE);
$_REQUEST = \array_map($stripslashes_deep_fn, $_REQUEST);
}
}

Expand Down

0 comments on commit 0a0bba6

Please sign in to comment.