aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-12-07 12:45:30 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-12-07 12:45:30 +0000
commit450a54397f61f2fe53c8638459aad7ba9bc1c069 (patch)
treef1f35da1f6145ef100bf4e36a88531d44faa579e
parentb4c8e502936853763dfeeaece8f43695878c7665 (diff)
downloadelgg-450a54397f61f2fe53c8638459aad7ba9bc1c069.tar.gz
elgg-450a54397f61f2fe53c8638459aad7ba9bc1c069.tar.bz2
fixes #1183 - correct case for form method now
git-svn-id: http://code.elgg.org/elgg/trunk@3736 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--views/default/input/form.php2
-rw-r--r--views/failsafe/input/form.php2
-rw-r--r--views/failsafe/messages/sanitisation/settings.php2
3 files changed, 5 insertions, 1 deletions
diff --git a/views/default/input/form.php b/views/default/input/form.php
index 25f140a01..11fb485da 100644
--- a/views/default/input/form.php
+++ b/views/default/input/form.php
@@ -40,6 +40,8 @@ if (isset($vars['method'])) {
$method = 'POST';
}
+$method = strtolower($method);
+
// Generate a security header
$security_header = "";
if ($vars['disable_security']!=true) {
diff --git a/views/failsafe/input/form.php b/views/failsafe/input/form.php
index 10fe89dcf..33ddfc3ea 100644
--- a/views/failsafe/input/form.php
+++ b/views/failsafe/input/form.php
@@ -39,6 +39,8 @@ if (isset($vars['method'])) {
$method = 'POST';
}
+$method = strtolower($method);
+
?>
<form <?php if ($id) { ?>id="<?php echo $id; ?>" <?php } ?> <?php if ($name) { ?>name="<?php echo $name; ?>" <?php } ?> action="<?php echo $action; ?>" method="<?php echo $method; ?>" <?php if ($enctype!="") echo "enctype=\"$enctype\""; ?>>
<?php echo $body; ?>
diff --git a/views/failsafe/messages/sanitisation/settings.php b/views/failsafe/messages/sanitisation/settings.php
index cf3ee719d..1fe807a05 100644
--- a/views/failsafe/messages/sanitisation/settings.php
+++ b/views/failsafe/messages/sanitisation/settings.php
@@ -21,7 +21,7 @@ if ($vars['settings.php']) {
?>
<div>
<h2><?php echo elgg_echo('installation:settings:dbwizard:prompt'); ?></h2>
- <form method="POST">
+ <form method="post">
<table cellpadding="0" cellspacing="10" style="background:#f1f1f1;">
<tr><td valign="top"><?php echo elgg_echo('installation:settings:dbwizard:label:user'); ?></td><td valign="top"> <input type="text" name="db_install_vars[CONFIG_DBUSER]" /></td></tr>
<tr><td valign="top"><?php echo elgg_echo('installation:settings:dbwizard:label:pass'); ?></td><td valign="top"> <input type="password" name="db_install_vars[CONFIG_DBPASS]" /></td></tr>