Browse Source

php - trim settings address

master
kanoi 8 years ago
parent
commit
96591926b8
  1. 4
      pool/page_settings.php

4
pool/page_settings.php

@ -149,7 +149,9 @@ function dosettings($data, $user)
else
{
$addr = getparam('baddr', false);
$addrarr = array(array('addr' => $addr));
if (nuem($addr))
$addr = '';
$addrarr = array(array('addr' => trim($addr)));
$pass = getparam('pass', false);
$twofa = getparam('2fa', false);
$ans = userSettings($user, null, $addrarr, $pass, $twofa);

Loading…
Cancel
Save