1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-14 01:19:44 +01:00

#4004 - Fix for password filter in /usersettings.php

This commit is contained in:
Tijn Kuyper 2019-11-04 18:38:00 +01:00
parent 02497778b7
commit 74aeb9dcc7
No known key found for this signature in database
GPG Key ID: AAEA3CC2C5A308F2

View File

@ -348,13 +348,23 @@ class usersettings_front // Begin Usersettings rewrite.
if (!empty($_POST['updatesettings']))
{
$ueVals = $_POST['ue'];
// Do not filter these values (saving)
$ueVals = $_POST['ue'];
$passtemp1 = $_POST['password1'];
$passtemp2 = $_POST['password2'];
// Filter the others
$_POST = e107::getParser()->filter($_POST);
// Pass the original values back (restoring)
$_POST['ue'] = $ueVals;
$_POST['password1'] = $passtemp1;
$_POST['password2'] = $passtemp2;
$_POST['ue'] = $ueVals;
// Unset temporary vars
unset($ueVals);
unset($passtemp1);
unset($passtemp2);
if (!vartrue($pref['auth_method']))
{