From c34b2397db7b7e6ba95349b2689e00664e5e08e4 Mon Sep 17 00:00:00 2001 From: kanoi Date: Sat, 18 Oct 2014 23:03:01 +1100 Subject: [PATCH] php - fix/unfix input fields as required also --- pool/page_settings.php | 4 ++-- pool/page_workmgt.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pool/page_settings.php b/pool/page_settings.php index da99a97b..852e3f1a 100644 --- a/pool/page_settings.php +++ b/pool/page_settings.php @@ -18,7 +18,7 @@ function settings($data, $user, $email, $addr, $err) $pg .= ''; $pg .= 'EMail:'; $pg .= ''; - $pg .= ""; + $pg .= ""; $pg .= ''; $pg .= ''; $pg .= 'Password:'; @@ -41,7 +41,7 @@ function settings($data, $user, $email, $addr, $err) $pg .= ''; $pg .= 'BTC Address:'; $pg .= ''; - $pg .= ""; + $pg .= ""; $pg .= ''; $pg .= ''; $pg .= 'Password:'; diff --git a/pool/page_workmgt.php b/pool/page_workmgt.php index df6e8cfe..4cea1569 100644 --- a/pool/page_workmgt.php +++ b/pool/page_workmgt.php @@ -30,7 +30,7 @@ function workmgtuser($data, $user, $err) $pg .= ""; $wn = htmlspecialchars($ans['workername:'.$i]); - $wnv = sq($ans['workername:'.$i]); + $wnv = urlencode($ans['workername:'.$i]); $pg .= ''; $pg .= ""; $pg .= $wn.''; @@ -67,7 +67,7 @@ function doworkmgt($data, $user) $settings = array(); for ($i = 0; $i < $count; $i++) { - $wn = getparam('workername:'.$i, false); + $wn = urldecode(getparam('workername:'.$i, false)); $md = getparam('difficultydefault:'.$i, false); if (!nuem($wn) && !nuem($md)) {