Browse Source

php - trim address and name for address management

master
kanoi 8 years ago
parent
commit
a661347139
  1. 2
      pool/page_addrmgt.php

2
pool/page_addrmgt.php

@ -162,7 +162,7 @@ function doaddrmgt($data, $user)
$nam = ''; $nam = '';
$ratio = getparam('ratio:'.$i, false); $ratio = getparam('ratio:'.$i, false);
if (!nuem($addr) && !nuem($ratio)) if (!nuem($addr) && !nuem($ratio))
$addrarr[] = array('addr' => $addr, 'payname' => $nam, 'ratio' => $ratio); $addrarr[] = array('addr' => trim($addr), 'payname' => trim($nam), 'ratio' => $ratio);
} }
$ans = userSettings($user, null, $addrarr, $pass, $twofa); $ans = userSettings($user, null, $addrarr, $pass, $twofa);
if ($ans['STATUS'] != 'ok') if ($ans['STATUS'] != 'ok')

Loading…
Cancel
Save