From 96591926b8261c2d1aea8ccdb638d2cf28c87f63 Mon Sep 17 00:00:00 2001 From: kanoi Date: Thu, 22 Sep 2016 04:27:44 +1000 Subject: [PATCH] php - trim settings address --- pool/page_settings.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pool/page_settings.php b/pool/page_settings.php index b52d8d30..862ddbb1 100644 --- a/pool/page_settings.php +++ b/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);