From d2cb4887537ae84f39f7cca5cfafc53d3a07f548 Mon Sep 17 00:00:00 2001 From: domi <> Date: Sat, 25 Aug 2012 15:34:28 +0000 Subject: [PATCH] Add 'server' method to getFields and allow for method to be case insensitive --- bureau/class/functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bureau/class/functions.php b/bureau/class/functions.php index 8e694f07..00b1db10 100644 --- a/bureau/class/functions.php +++ b/bureau/class/functions.php @@ -435,11 +435,11 @@ function ehe($str) { */ function getFields($fields, $requestOnly = false) { $vars = array(); - $methodType = array ("get", "post", "request", "files"); + $methodType = array ("get", "post", "request", "files", "server"); foreach ($fields AS $name => $options) { - if (in_array($options[0], $methodType) === false) - die ("Illegal method type used for field " . $name . " : " . $options[0]); + if (in_array(strtolower($options[0]), $methodType) === false) + die ("Unrecognized method type used for field " . $name . " : " . $options[0]); if ($requestOnly === true) $method = "_REQUEST";