Skip to content
Snippets Groups Projects
Commit 0d5b3dfd authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

this generated a notice error in some versions of php

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@321 44740490-163a-0410-bde0-09ae8108e29a
parent 5f1b90ff
No related branches found
No related tags found
No related merge requests found
...@@ -3,22 +3,21 @@ ...@@ -3,22 +3,21 @@
/* Remove magic quotes. */ /* Remove magic quotes. */
if(get_magic_quotes_gpc()) { if(get_magic_quotes_gpc()) {
foreach(array('_GET', '_POST', '_COOKIE', '_REQUEST') as $a) { foreach(array('_GET', '_POST', '_COOKIE', '_REQUEST') as $a) {
foreach($$a as &$v) { if (is_array($$a)) {
foreach($$a as &$v) {
/* We don't use array-parameters anywhere. /* We don't use array-parameters anywhere.
* Ignore any that may appear. * Ignore any that may appear.
*/ */
if(is_array($v)) { if(is_array($v)) {
continue; continue;
}
/* Unescape the string. */
$v = stripslashes($v);
} }
/* Unescape the string. */
$v = stripslashes($v);
} }
} }
} }
$path_extra = dirname(dirname(__FILE__)) . '/lib'; $path_extra = dirname(dirname(__FILE__)) . '/lib';
$path = ini_get('include_path'); $path = ini_get('include_path');
......
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