Replace the last vestiges of htmlentities with htmlspecialchars
This commit is contained in:
@@ -134,8 +134,8 @@ class EditUser extends HTMLController
|
||||
$data = $form->getData();
|
||||
|
||||
// Just to be on the safe side.
|
||||
$data['first_name'] = htmlentities(trim($data['first_name']));
|
||||
$data['surname'] = htmlentities(trim($data['surname']));
|
||||
$data['first_name'] = htmlspecialchars(trim($data['first_name']));
|
||||
$data['surname'] = htmlspecialchars(trim($data['surname']));
|
||||
$data['emailaddress'] = trim($data['emailaddress']);
|
||||
|
||||
// Make sure there's a slug.
|
||||
|
||||
Reference in New Issue
Block a user