forked from Public/pics
Replace the last vestiges of htmlentities with htmlspecialchars
This commit is contained in:
1 parent
03ad26655c
commit
1fa4cb19a2
4 files changed
+6
-6
No files matched your search
@@ -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