Skip to content
Snippets Groups Projects
Commit 4005427b authored by Olav Morken's avatar Olav Morken
Browse files

_include.php: Fix undefined variable reference in magic quotes removal code.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1663 44740490-163a-0410-bde0-09ae8108e29a
parent 57edb42a
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@
/* Remove magic quotes. */
if(get_magic_quotes_gpc()) {
foreach(array('_GET', '_POST', '_COOKIE', '_REQUEST') as $a) {
if (is_array($$a)) {
if (isset($$a) && is_array($$a)) {
foreach($$a as &$v) {
/* We don't use array-parameters anywhere.
* Ignore any that may appear.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment