Skip to content

Commit

Permalink
Fix issue with referer urls containing ampersands
Browse files Browse the repository at this point in the history
Fix issue where referer urls containing html entity ampersands.
Specifically in regard to issue 23, search results add to compare link.
  • Loading branch information
Jonathan Alexander committed May 25, 2012
1 parent 2cb8a2e commit 7e5b514
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/code/core/Mage/Core/Controller/Varien/Action.php
Expand Up @@ -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;
Expand Down

0 comments on commit 7e5b514

Please sign in to comment.