From 4c8aefea8cb128780548806068b925061f84cd51 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 3 Jul 2004 10:52:31 +0000 Subject: [PATCH] fixed problem with magic quotes --- lam/templates/profedit/profilecreate.php | 7 +++++++ 1 file changed, 7 insertions(+) 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