cgi: Fix commit a0822dd (preset var names)
authorWerner Koch <wk@gnupg.org>
Tue, 16 May 2017 17:25:01 +0000 (19:25 +0200)
committerWerner Koch <wk@gnupg.org>
Tue, 16 May 2017 17:25:01 +0000 (19:25 +0200)
cgi/procdonate.cgi

index a6dc28d..82bdddf 100755 (executable)
@@ -1030,13 +1030,13 @@ elsif ($mode eq 'preset') {
         # Then look at arbitrary values
         # No checking needed.
         if ($q->param('s_amt') ne '') {
-            $amount = int $q->param('s_amount');
+            $amount = int $q->param('s_amt');
         }
         if ($q->param('s_cur') ne '') {
-            $currency = $q->param('s_currency');
+            $currency = $q->param('s_cur');
         }
         if ($q->param('s_pt') ne '') {
-            $paytype = $q->param('s_paytype');
+            $paytype = $q->param('s_pt');
         }
     }