From 7d2d610f13f0a5abd09b2f7d678fb553d1934d40 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 18 May 2010 06:59:46 +0000 Subject: - Patch #796120 by c960657: do not urldecode() parameters in drupal_goto(). --- includes/common.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/common.inc b/includes/common.inc index 57bff0233..452013589 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -660,7 +660,7 @@ function drupal_encode_path($path) { function drupal_goto($path = '', array $options = array(), $http_response_code = 302) { // A destination in $_GET always overrides the function arguments. if (isset($_GET['destination'])) { - $destination = drupal_parse_url(urldecode($_GET['destination'])); + $destination = drupal_parse_url($_GET['destination']); $path = $destination['path']; $options['query'] = $destination['query']; $options['fragment'] = $destination['fragment']; -- cgit v1.2.3