Skip to content

Commit 4346564

Browse files
34061 Fixed welcome message issue
1 parent 07e51ce commit 4346564

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Theme/Block/Html/Header.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function getWelcome()
3434
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
3535
);
3636
}
37-
$this->_data['welcome'] = str_replace("'", "\'", $this->_data['welcome']);
37+
$this->_data['welcome'] = addslashes($this->_data['welcome']);
3838
return __($this->_data['welcome']);
3939
}
4040
}

0 commit comments

Comments
 (0)