summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/form.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/inc/form.php b/inc/form.php
index 56afd3fec..4e245c93a 100644
--- a/inc/form.php
+++ b/inc/form.php
@@ -63,14 +63,20 @@ class Doku_Form {
if(!is_array($params)) {
$this->params = array('id' => $params);
if ($action !== false) $this->params['action'] = $action;
- if ($method !== false) $this->params['method'] = $method;
+ if ($method !== false) $this->params['method'] = strtolower($method);
if ($enctype !== false) $this->params['enctype'] = $enctype;
} else {
$this->params = $params;
}
if (!isset($this->params['method'])) {
- $this->params['method'] = 'POST';
+ $this->params['method'] = 'post';
+ } else {
+ $this->params['method'] = strtolower($this->params['method']);
+ }
+
+ if (!isset($this->params['action'])) {
+ $this->params['action'] = '';
}
$this->addHidden('sectok', getSecurityToken());