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

4.7.x
Gerhard Killesreiter 2006-02-27 14:19:07 +00:00
parent 72a73fedbd
commit 2173ef13fd
1 changed files with 2 additions and 2 deletions

View File

@ -218,10 +218,10 @@ function drupal_get_destination() {
* @see drupal_get_destination()
*/
function drupal_goto($path = '', $query = NULL, $fragment = NULL) {
if ($_REQUEST['destination']) {
if (isset($_REQUEST['destination'])) {
extract(parse_url($_REQUEST['destination']));
}
else if ($_REQUEST['edit']['destination']) {
else if (isset($_REQUEST['edit']['destination'])) {
extract(parse_url($_REQUEST['edit']['destination']));
}