aboutsummaryrefslogtreecommitdiffstats
path: root/register.php
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2010-04-21 20:13:41 +0000
committernikrou <nikrou@piwigo.org>2010-04-21 20:13:41 +0000
commitafb2e04fab230abce0635b33cce4ddd8a8e91529 (patch)
treec02c66980ca561a7ced3bfed6ff15d9926df0b1e /register.php
parent23cc91fcffc3fe81baf99dc177670d85c0903545 (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 '')
-rw-r--r--register.php4
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