mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-09 18:23:18 +02:00
bug 2774 fixed: better sanitize on username_or_email user input
git-svn-id: http://piwigo.org/svn/branches/2.4@18699 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
+1
-1
@@ -324,7 +324,7 @@ if ('lost' == $page['action'])
|
||||
|
||||
if (isset($_POST['username_or_email']))
|
||||
{
|
||||
$template->assign('username_or_email', stripslashes(strip_tags($_POST['username_or_email'])));
|
||||
$template->assign('username_or_email', htmlspecialchars(stripslashes($_POST['username_or_email'])));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user