Skip to content

Commit

Permalink
Improved input handling
Browse files Browse the repository at this point in the history
  • Loading branch information
lfield authored Oct 11, 2024
1 parent dca4153 commit 47cf87f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html/user/edit_user_info_action.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
$user = get_logged_in_user();
check_tokens($user->authenticator);

$name = trim(post_str("user_name"));
$name = filter_input(INPUT_POST, 'user_name', FILTER_SANITIZE_SPECIAL_CHARS);
if ($name != sanitize_tags($name)) {
error_page(tra("HTML tags are not allowed in your name."));
}
Expand Down

0 comments on commit 47cf87f

Please sign in to comment.