bug [core] Remove cookies from $_REQUEST for better coexistence with other applications

This commit is contained in:
Marc Delisle
2008-02-23 21:16:42 +00:00
parent 5240975939
commit c57b39bed9
2 changed files with 9 additions and 0 deletions

View File

@@ -211,6 +211,13 @@ if (isset($_POST['usesubform'])) {
unset($_POST['redirect']);
}
unset($subform_id, $subform);
} else {
// Note: here we overwrite $_REQUEST so that it does not contain cookies,
// because another application for the same domain could have set
// a cookie (with a compatible path) that overrides a variable
// we expect from GET or POST.
// We'll refer to cookies explicitly with the $_COOKIE syntax.
$_REQUEST = array_merge($_GET, $_POST);
}
// end check if a subform is submitted