diff --git a/user_anketa.php b/user_anketa.php index ce5d0f5..fba72b4 100644 --- a/user_anketa.php +++ b/user_anketa.php @@ -12,11 +12,11 @@ if ($user['battle'] > 0) { die(); } -$name = filter_input(INPUT_POST, 'name', FILTER_SANITIZE_SPECIAL_CHARS); +$name = filter_input(INPUT_POST, 'name', FILTER_SANITIZE_STRING); $oldpsw = filter_input(INPUT_POST, 'oldpsw', FILTER_SANITIZE_SPECIAL_CHARS); $newpsw = filter_input(INPUT_POST, 'newpsw', FILTER_SANITIZE_SPECIAL_CHARS); $color = filter_input(INPUT_POST, 'color', FILTER_VALIDATE_INT); -$hobbie = filter_input(INPUT_POST, 'hobbie', FILTER_SANITIZE_SPECIAL_CHARS); +$hobbie = filter_input(INPUT_POST, 'hobbie', FILTER_SANITIZE_STRING); $hobbie = str_replace("\\n", "
", $hobbie); $hobbie = str_replace("\\r", "", $hobbie); $hobbie = str_replace("<br />", "
", $hobbie);