From 7e5b514b72b509c42b5e729d389ae64fa2f8f54b Mon Sep 17 00:00:00 2001 From: Jonathan Alexander Date: Fri, 25 May 2012 00:28:51 -0400 Subject: [PATCH] Fix issue with referer urls containing ampersands Fix issue where referer urls containing html entity ampersands. Specifically in regard to issue 23, search results add to compare link. --- app/code/core/Mage/Core/Controller/Varien/Action.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/code/core/Mage/Core/Controller/Varien/Action.php b/app/code/core/Mage/Core/Controller/Varien/Action.php index 8f16e3c5e..b88788c3d 100644 --- a/app/code/core/Mage/Core/Controller/Varien/Action.php +++ b/app/code/core/Mage/Core/Controller/Varien/Action.php @@ -765,6 +765,7 @@ protected function _redirectReferer($defaultUrl=null) if (empty($refererUrl)) { $refererUrl = empty($defaultUrl) ? Mage::getBaseUrl() : $defaultUrl; } + $refererUrl = htmlspecialchars_decode($refererUrl); $this->getResponse()->setRedirect($refererUrl); return $this;