[gnome-web-www] Try looking for the gnome_mail_alias variable in the POSTed payload?



commit 1f5972061192b35288df82bacdf34275ed7d6cf9
Author: Andrea Veri <av gnome org>
Date:   Thu Jun 6 18:52:08 2019 +0000

    Try looking for the gnome_mail_alias variable in the POSTed payload?

 theme/page-apply.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/theme/page-apply.php b/theme/page-apply.php
index f2ca49d..4200ff7 100644
--- a/theme/page-apply.php
+++ b/theme/page-apply.php
@@ -138,7 +138,7 @@ if (array_key_exists('submit', $_POST)) {
 </p>
 
 <div class="item benefits">
-    <input name="gnome_mail_alias" id="gnome_mail_alias" type="checkbox" onClick="toggleBenefitsFields()" 
<?php isset($gnome_mail_alias)? 'checked' : '' ;?> /> @gnome.org mail alias
+    <input name="gnome_mail_alias" id="gnome_mail_alias" type="checkbox" onClick="toggleBenefitsFields()" 
<?php isset(_POST["gnome_mail_alias"])? 'checked' : '' ;?> /> @gnome.org mail alias
     <input name="gnome_username" id="gnome_username" type="text" placeholder="What do you want your username 
to be?" value="<?php echo htmlspecialchars($gnome_username);?>" disabled />
 </div>
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]