Skip to content

Commit

Permalink
Escape HTML special characters in registration user name
Browse files Browse the repository at this point in the history
  • Loading branch information
cheevu-RS authored Mar 2, 2019
1 parent aaaa01c commit 6c98462
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cms/registration.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function getRegistrationForm() {
if(isset($_POST['user_email']))
$email_val = escape($_POST['user_email']);
if(isset($_POST['user_name']))
$name_val = escape($_POST['user_name']);
$name_val = htmlspecialchars(escape($_POST['user_name']));
if(isset($_POST['user_email']))
$fullname_val = escape($_POST['user_fullname']);
$reg_str =<<<REG
Expand Down

0 comments on commit 6c98462

Please sign in to comment.