fixed problem with magic quotes
This commit is contained in:
parent
61fcd6b69d
commit
4c8aefea8c
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue