summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/diag_backup.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-09-22 14:15:15 -0400
committerStephen Beaver <sbeaver@netgate.com>2015-09-22 14:15:15 -0400
commit3beeb66a86b632df47edaf3699cae58123b98261 (patch)
tree0cc633a705794d2d7ac10d624ec274dd623dbf2c /src/usr/local/www/diag_backup.php
parentd05950fbcbce449ad3e3ad1b4a1d991a590efc02 (diff)
downloadpfsense-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.php5
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();
OpenPOWER on IntegriCloud