From d42843ad8977577b51a171e2d1cf333dc3aa7116 Mon Sep 17 00:00:00 2001
From: Alan Garcia
Date: Wed, 22 Aug 2012 12:17:28 +0000
Subject: [PATCH] Register Globals Fix #1305
---
bureau/admin/ftp_doedit.php | 12 +++++++++++-
bureau/admin/ftp_edit.php | 3 ++-
bureau/admin/ftp_list.php | 2 +-
3 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/bureau/admin/ftp_doedit.php b/bureau/admin/ftp_doedit.php
index ad9ae4b5..f5f10678 100644
--- a/bureau/admin/ftp_doedit.php
+++ b/bureau/admin/ftp_doedit.php
@@ -28,6 +28,16 @@
----------------------------------------------------------------------
*/
require_once("../class/config.php");
+$fields = array (
+ "id" => array ("post", "integer", ""),
+ "pass" => array ("post", "string", ""),
+ "passconf" => array ("post", "string", ""),
+ "prefixe" => array ("post", "string", ""),
+ "login" => array ("post", "string", ""),
+ "dir" => array ("post", "string", ""),
+);
+getFields($fields);
+
if (!$id) {
$error=_("No account selected!");
@@ -55,7 +65,7 @@ include_once("head.php");
?>
$error";
}
?>
diff --git a/bureau/admin/ftp_edit.php b/bureau/admin/ftp_edit.php
index 1100ebb8..55675c2e 100644
--- a/bureau/admin/ftp_edit.php
+++ b/bureau/admin/ftp_edit.php
@@ -51,6 +51,7 @@ if (isset($error) && $error) {
include_once("foot.php");
exit();
}
+printVar($r);
?>