Skip to content

Commit

Permalink
fix: strip tags for questions
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed Jan 25, 2023
1 parent 40515c7 commit 77b42b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions phpmyfaq/ajaxservice.php
Expand Up @@ -482,6 +482,7 @@
$email = Filter::filterInput(INPUT_POST, 'email', FILTER_VALIDATE_EMAIL);
$ucategory = Filter::filterInput(INPUT_POST, 'category', FILTER_VALIDATE_INT);
$question = Filter::filterInput(INPUT_POST, 'question', FILTER_UNSAFE_RAW);
$question = strip_tags($question);
$save = Filter::filterInput(INPUT_POST, 'save', FILTER_VALIDATE_INT, 0);

// If e-mail address is set to optional
Expand Down

0 comments on commit 77b42b9

Please sign in to comment.