diff --git a/lam/templates/profedit/profilecreate.php b/lam/templates/profedit/profilecreate.php index 37238380..85ba8edd 100644 --- a/lam/templates/profedit/profilecreate.php +++ b/lam/templates/profedit/profilecreate.php @@ -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 $errors = checkProfileOptions($_POST['accounttype'], $options); // print error messages if any