diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-09-22 14:15:15 -0400 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-09-22 14:15:15 -0400 |
commit | 3beeb66a86b632df47edaf3699cae58123b98261 (patch) | |
tree | 0cc633a705794d2d7ac10d624ec274dd623dbf2c /src/usr/local/www/diag_backup.php | |
parent | d05950fbcbce449ad3e3ad1b4a1d991a590efc02 (diff) | |
download | pfsense-3beeb66a86b632df47edaf3699cae58123b98261.zip pfsense-3beeb66a86b632df47edaf3699cae58123b98261.tar.gz |
Fixed #5187
Added multipart encoding to form
Diffstat (limited to 'src/usr/local/www/diag_backup.php')
-rw-r--r-- | src/usr/local/www/diag_backup.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/usr/local/www/diag_backup.php b/src/usr/local/www/diag_backup.php index 2302158..073f8aa 100644 --- a/src/usr/local/www/diag_backup.php +++ b/src/usr/local/www/diag_backup.php @@ -634,6 +634,7 @@ display_top_tabs($tab_array); require_once('classes/Form.class.php'); $form = new Form(false); +$form->setMultipartEncoding(); // Allow file uploads $section = new Form_Section('Backup configuration'); @@ -820,7 +821,7 @@ events.push(function(){ } function hidePasswords() { - + encryptHide = !($('input[name="encrypt"]').is(':checked')); decryptHide = !($('input[name="decrypt"]').is(':checked')); @@ -838,7 +839,7 @@ events.push(function(){ $('input[name="decrypt"]').on('change', function() { hidePasswords(); - }); + }); // ---------- On itial page load -------------------------------------------------------------- hideSections(); |