- Patch #296300 by chx: remove edit[] and fixed Doxygen.
--- includes/common.inc 2008/08/16 07:33:05 1.786
+++ includes/common.inc 2008/08/17 11:08:23 1.787
@@ -261,8 +261,7 @@
* Usually the redirected URL is constructed from this function's input
* parameters. However you may override that behavior by setting a
* destination in either the $_REQUEST-array (i.e. by using
- * the query string of an URI) or the $_REQUEST['edit']-array (i.e. by
- * using a hidden form field). This is used to direct the user back to
+ * the query string of an URI) This is used to direct the user back to
* the proper page after completing a form. For example, after editing
* a post on the 'admin/content/node'-page or after having logged on using the
* 'user login'-block in a sidebar. The function drupal_get_destination()
@@ -298,9 +297,6 @@
if (isset($_REQUEST['destination'])) {
extract(parse_url(urldecode($_REQUEST['destination'])));
}
- else if (isset($_REQUEST['edit']['destination'])) {
- extract(parse_url(urldecode($_REQUEST['edit']['destination'])));
- }
$url = url($path, array('query' => $query, 'fragment' => $fragment, 'absolute' => TRUE));
// Remove newlines from the URL to avoid header injection attacks.
--- includes/form.inc 2008/08/15 07:55:54 1.280
+++ includes/form.inc 2008/08/17 11:08:23 1.281
@@ -1964,7 +1964,6 @@
*
* @param $element
* An associative array containing the properties of the element.
- * Properties used: value, edit
* @return
* A themed HTML string representing the hidden form field.
*
@@ -2481,10 +2480,6 @@
$batch['destination'] = $_REQUEST['destination'];
unset($_REQUEST['destination']);
}
- elseif (isset($_REQUEST['edit']['destination'])) {
- $batch['destination'] = $_REQUEST['edit']['destination'];
- unset($_REQUEST['edit']['destination']);
- }
// Initiate db storage in order to get a batch id. We have to provide
// at least an empty string for the (not null) 'token' column.