Skip to content

Commit

Permalink
Merge branch 'main' into next
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano committed Jun 30, 2023
2 parents f157bc4 + b20f568 commit eaca57c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions 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
3 changes: 3 additions & 0 deletions app/code/core/Mage/Core/Helper/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,9 @@ public function jsQuoteEscape($data, $quote = '\'')
*/
public function quoteEscape($data, $addSlashes = false)
{
if (!$data) {
return $data;
}
if ($addSlashes === true) {
$data = addslashes($data);
}
Expand Down
3 changes: 3 additions & 0 deletions app/code/core/Mage/Sales/Model/Quote/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,9 @@ public function setQuote(Mage_Sales_Model_Quote $quote)
*/
public function getQuote()
{
if (is_null($this->_quote)) {
$this->_quote = Mage::getModel('sales/quote')->load($this->getQuoteId());
}
return $this->_quote;
}

Expand Down
3 changes: 3 additions & 0 deletions app/code/core/Mage/Sales/Model/Quote/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,9 @@ public function setQuote(Mage_Sales_Model_Quote $quote)
*/
public function getQuote()
{
if (is_null($this->_quote)) {
$this->_quote = Mage::getModel('sales/quote')->load($this->getQuoteId());
}
return $this->_quote;
}

Expand Down

0 comments on commit eaca57c

Please sign in to comment.