diff options
author | nikrou <nikrou@piwigo.org> | 2010-04-21 20:13:41 +0000 |
---|---|---|
committer | nikrou <nikrou@piwigo.org> | 2010-04-21 20:13:41 +0000 |
commit | afb2e04fab230abce0635b33cce4ddd8a8e91529 (patch) | |
tree | c02c66980ca561a7ced3bfed6ff15d9926df0b1e /register.php | |
parent | 23cc91fcffc3fe81baf99dc177670d85c0903545 (diff) |
Bug 1621 fixed : CSS vulnerability in register.php
login and mail_address fields must be filtered with htmlspecialchars.
git-svn-id: http://piwigo.org/svn/trunk@5936 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'register.php')
-rw-r--r-- | register.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/register.php b/register.php index 5a9fb04c5..98e76d916 100644 --- a/register.php +++ b/register.php @@ -76,8 +76,8 @@ $template->assign(array( 'U_HOME' => make_index_url(), 'F_ACTION' => 'register.php', - 'F_LOGIN' => $login, - 'F_EMAIL' => $email + 'F_LOGIN' => htmlspecialchars($login, ENT_QUOTES, 'utf-8'), + 'F_EMAIL' => htmlspecialchars($email, ENT_QUOTES, 'utf-8') )); //-------------------------------------------------------------- errors display |