Skip to content

Commit

Permalink
fix: corrected sanitazing the string
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed Mar 12, 2023
1 parent dcf7dd4 commit a264219
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phpmyfaq/admin/category.main.php
Expand Up @@ -165,8 +165,8 @@
'id' => $categoryId,
'lang' => $categoryLang,
'parent_id' => $parentId,
'name' => Filter::filterInput(INPUT_POST, 'name', FILTER_UNSAFE_RAW),
'description' => Filter::filterInput(INPUT_POST, 'description', FILTER_UNSAFE_RAW),
'name' => Filter::filterInput(INPUT_POST, 'name', FILTER_SANITIZE_SPECIAL_CHARS),
'description' => Filter::filterInput(INPUT_POST, 'description', FILTER_SANITIZE_SPECIAL_CHARS),
'user_id' => Filter::filterInput(INPUT_POST, 'user_id', FILTER_VALIDATE_INT),
'group_id' => Filter::filterInput(INPUT_POST, 'group_id', FILTER_VALIDATE_INT),
'active' => Filter::filterInput(INPUT_POST, 'active', FILTER_VALIDATE_INT),
Expand Down

0 comments on commit a264219

Please sign in to comment.