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

Remove magic quotes as a part of the initialization of simpleSAMLphp.

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