diff --git a/patches/lowercase_post.diff b/patches/lowercase_post.diff new file mode 100644 index 0000000000000000000000000000000000000000..c6a605156dbed15ff22202870434d2cccb117517 --- /dev/null +++ b/patches/lowercase_post.diff @@ -0,0 +1,57 @@ +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>