From a6613471392d42b8a8d322f82141ebcf926dbc9a Mon Sep 17 00:00:00 2001 From: kanoi Date: Thu, 22 Sep 2016 04:22:29 +1000 Subject: [PATCH] php - trim address and name for address management --- pool/page_addrmgt.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pool/page_addrmgt.php b/pool/page_addrmgt.php index 922a98c5..28222660 100644 --- a/pool/page_addrmgt.php +++ b/pool/page_addrmgt.php @@ -162,7 +162,7 @@ function doaddrmgt($data, $user) $nam = ''; $ratio = getparam('ratio:'.$i, false); 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); if ($ans['STATUS'] != 'ok')