notice fixes
This commit is contained in:
parent
a418c44735
commit
62afbff63a
@ -12,11 +12,11 @@ if ($user['battle'] > 0) {
|
|||||||
die();
|
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);
|
$oldpsw = filter_input(INPUT_POST, 'oldpsw', FILTER_SANITIZE_SPECIAL_CHARS);
|
||||||
$newpsw = filter_input(INPUT_POST, 'newpsw', FILTER_SANITIZE_SPECIAL_CHARS);
|
$newpsw = filter_input(INPUT_POST, 'newpsw', FILTER_SANITIZE_SPECIAL_CHARS);
|
||||||
$color = filter_input(INPUT_POST, 'color', FILTER_VALIDATE_INT);
|
$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", "<br />", $hobbie);
|
$hobbie = str_replace("\\n", "<br />", $hobbie);
|
||||||
$hobbie = str_replace("\\r", "", $hobbie);
|
$hobbie = str_replace("\\r", "", $hobbie);
|
||||||
$hobbie = str_replace("<br />", "<br />", $hobbie);
|
$hobbie = str_replace("<br />", "<br />", $hobbie);
|
||||||
|
Loading…
Reference in New Issue
Block a user