Skip to content
Snippets Groups Projects
Commit 8388cfcc authored by Seth Meranda's avatar Seth Meranda
Browse files

Applied a patch to fix the POST validity issues.

parent 8f2a3540
No related branches found
No related tags found
No related merge requests found
Index: views/default/input/form.php
===================================================================
--- views/default/input/form.php (revision 3440)
+++ views/default/input/form.php (working copy)
@@ -10,7 +10,7 @@
* @link http://elgg.org/
*
* @uses $vars['body'] The body of the form (made up of other input/xxx views and html
- * @uses $vars['method'] Method (default POST)
+ * @uses $vars['method'] Method (default post)
* @uses $vars['enctype'] How the form is encoded, default blank
* @uses $vars['action'] URL of the action being called
*
@@ -21,7 +21,7 @@
$body = $vars['body'];
$action = $vars['action'];
if (isset($vars['enctype'])) { $enctype = $vars['enctype']; } else { $enctype = ''; }
- if (isset($vars['method'])) { $method = $vars['method']; } else { $method = 'POST'; }
+ if (isset($vars['method'])) { $method = $vars['method']; } else { $method = 'post'; }
// Generate a security header
$security_header = "";
Index: views/failsafe/input/form.php
===================================================================
--- views/failsafe/input/form.php (revision 3440)
+++ views/failsafe/input/form.php (working copy)
@@ -10,7 +10,7 @@
* @link http://elgg.org/
*
* @uses $vars['body'] The body of the form (made up of other input/xxx views and html
- * @uses $vars['method'] Method (default POST)
+ * @uses $vars['method'] Method (default post)
* @uses $vars['enctype'] How the form is encoded, default blank
* @uses $vars['action'] URL of the action being called
*
@@ -21,7 +21,7 @@
$body = $vars['body'];
$action = $vars['action'];
if (isset($vars['enctype'])) { $enctype = $vars['enctype']; } else { $enctype = ''; }
- if (isset($vars['method'])) { $method = $vars['method']; } else { $method = 'POST'; }
+ if (isset($vars['method'])) { $method = $vars['method']; } else { $method = 'post'; }
?>
<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\""; ?>>
Index: views/failsafe/messages/sanitisation/settings.php
===================================================================
--- views/failsafe/messages/sanitisation/settings.php (revision 3440)
+++ views/failsafe/messages/sanitisation/settings.php (working copy)
@@ -26,7 +26,7 @@
?>
<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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment