diff options
author | nikrou <nikrou@piwigo.org> | 2009-03-08 12:34:32 +0000 |
---|---|---|
committer | nikrou <nikrou@piwigo.org> | 2009-03-08 12:34:32 +0000 |
commit | 10e179f482cdba4ba8bfbe98a51b160435d399c1 (patch) | |
tree | 224eec1036d30fd86b9eade42af8903ca4bdcf60 | |
parent | 1cfe916db25a47ce3a61881be1eb756a77792857 (diff) |
bug fix #933 : quick fix to prevent html injection
git-svn-id: http://piwigo.org/svn/trunk@3184 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r-- | register.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/register.php b/register.php index 7a9304183..ca00bccfc 100644 --- a/register.php +++ b/register.php @@ -46,7 +46,7 @@ if (isset($_POST['submit'])) } $errors = - register_user($_POST['login'], + register_user(htmlspecialchars($_POST['login'],ENT_COMPAT,'utf-8'), $_POST['password'], $_POST['mail_address'], true, |