Skip to content

Commit

Permalink
Fixed passing null is deprecated for strpos in Mage_Core_Controller_V…
Browse files Browse the repository at this point in the history
…arien_Action (OpenMage#3327)
  • Loading branch information
kyrena authored Jun 30, 2023
1 parent c830ba5 commit 197cf79
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/code/core/Mage/Core/Controller/Varien/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -790,8 +790,7 @@ protected function _getRefererUrl()
if ($url = $this->getRequest()->getParam(self::PARAM_NAME_URL_ENCODED)) {
$refererUrl = Mage::helper('core')->urlDecodeAndEscape($url);
}

if (!$this->_isUrlInternal($refererUrl)) {
if (empty($refererUrl) || !$this->_isUrlInternal($refererUrl)) {
$refererUrl = Mage::app()->getStore()->getBaseUrl();
}
return $refererUrl;
Expand Down

0 comments on commit 197cf79

Please sign in to comment.