Skip to content

Commit

Permalink
Inpuit comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Sirupsen committed Dec 6, 2009
1 parent 55dc609 commit 8dcc4f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions system/libraries/input.php
Expand Up @@ -40,21 +40,25 @@ public function __construct() {
$_POST[$key] = $this->xssClean($val);
}
}
// Clean GET
if (is_array($_GET)) {
foreach($_GET as $key => $val) {
$_POST[$key] = $this->xssClean($val);
}
}
// Clean REQUEST
if (is_array($_REQUEST)) {
foreach($_REQUEST as $key => $val) {
$_POST[$key] = $this->xssClean($val);
}
}
// Clean SESSION
if (is_array($_SESSION)) {
foreach($_SESSION as $key => $val) {
$_POST[$key] = $this->xssClean($val);
}
}
// Clean COOKIES
if (is_array($_COOKIES)) {
foreach($_COOKIE as $key => $val) {
$_POST[$key] = $this->xssClean($val);
Expand Down

0 comments on commit 8dcc4f5

Please sign in to comment.