fixed problem with magic quotes

This commit is contained in:
Roland Gruber 2004-07-03 10:52:31 +00:00
parent 61fcd6b69d
commit 4c8aefea8c
1 changed files with 7 additions and 0 deletions

View File

@ -86,6 +86,13 @@ foreach ($opt_keys as $element) {
} }
} }
// remove double slashes if magic quotes are on
if (get_magic_quotes_gpc() == 1) {
foreach ($opt_keys as $element) {
if (is_string($options[$element][0])) $options[$element][0] = stripslashes($options[$element][0]);
}
}
// check options // check options
$errors = checkProfileOptions($_POST['accounttype'], $options); $errors = checkProfileOptions($_POST['accounttype'], $options);
// print error messages if any // print error messages if any