From 62afbff63ad4a3f4fea887980a8744ce3abf274d Mon Sep 17 00:00:00 2001 From: lopar Date: Sun, 4 Mar 2018 03:14:13 +0200 Subject: [PATCH] notice fixes --- user_anketa.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);