Skip to content
Snippets Groups Projects
Commit 2173ef13 authored by Gerhard Killesreiter's avatar Gerhard Killesreiter
Browse files

#50772, Getting destination from $_REQUEST, patch by rmiotke

parent 72a73fed
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -218,10 +218,10 @@ function drupal_get_destination() { ...@@ -218,10 +218,10 @@ function drupal_get_destination() {
* @see drupal_get_destination() * @see drupal_get_destination()
*/ */
function drupal_goto($path = '', $query = NULL, $fragment = NULL) { function drupal_goto($path = '', $query = NULL, $fragment = NULL) {
if ($_REQUEST['destination']) { if (isset($_REQUEST['destination'])) {
extract(parse_url($_REQUEST['destination'])); extract(parse_url($_REQUEST['destination']));
} }
else if ($_REQUEST['edit']['destination']) { else if (isset($_REQUEST['edit']['destination'])) {
extract(parse_url($_REQUEST['edit']['destination'])); extract(parse_url($_REQUEST['edit']['destination']));
} }
......
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