Commit 12df7225 authored by drumm's avatar drumm

#89059 by jvandervort, andeeeb, and Shakur. Decode destination path.

parent dd32f8dd
......@@ -287,10 +287,10 @@ function drupal_get_destination() {
*/
function drupal_goto($path = '', $query = NULL, $fragment = NULL) {
if (isset($_REQUEST['destination'])) {
extract(parse_url($_REQUEST['destination']));
extract(parse_url(urldecode($_REQUEST['destination'])));
}
else if (isset($_REQUEST['edit']['destination'])) {
extract(parse_url($_REQUEST['edit']['destination']));
extract(parse_url(urldecode($_REQUEST['edit']['destination'])));
}
$url = url($path, $query, $fragment, TRUE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment