@@ -57,7 +57,9 @@ public function setLogo($logo_src, $logo_alt)
5757 public function getLogoSrc ()
5858 {
5959 if (empty ($ this ->_data ['logo_src ' ])) {
60- $ this ->_data ['logo_src ' ] = Mage::getStoreConfig ('design/header/logo_src ' );
60+ $ this ->_data ['logo_src ' ] = new Mage_Core_Model_Security_HtmlEscapedString (
61+ (string ) Mage::getStoreConfig ('design/header/logo_src ' )
62+ );
6163 }
6264 return $ this ->getSkinUrl ($ this ->_data ['logo_src ' ]);
6365 }
@@ -68,7 +70,9 @@ public function getLogoSrc()
6870 public function getLogoSrcSmall ()
6971 {
7072 if (empty ($ this ->_data ['logo_src_small ' ])) {
71- $ this ->_data ['logo_src_small ' ] = Mage::getStoreConfig ('design/header/logo_src_small ' );
73+ $ this ->_data ['logo_src_small ' ] = new Mage_Core_Model_Security_HtmlEscapedString (
74+ (string ) Mage::getStoreConfig ('design/header/logo_src_small ' )
75+ );
7276 }
7377 return $ this ->getSkinUrl ($ this ->_data ['logo_src_small ' ]);
7478 }
@@ -79,7 +83,9 @@ public function getLogoSrcSmall()
7983 public function getLogoAlt ()
8084 {
8185 if (empty ($ this ->_data ['logo_alt ' ])) {
82- $ this ->_data ['logo_alt ' ] = Mage::getStoreConfig ('design/header/logo_alt ' );
86+ $ this ->_data ['logo_alt ' ] = new Mage_Core_Model_Security_HtmlEscapedString (
87+ (string ) Mage::getStoreConfig ('design/header/logo_alt ' )
88+ );
8389 }
8490 return $ this ->_data ['logo_alt ' ];
8591 }
@@ -97,7 +103,9 @@ public function getWelcome()
97103 if (Mage::isInstalled () && Mage::getSingleton ('customer/session ' )->isLoggedIn ()) {
98104 $ this ->_data ['welcome ' ] = $ this ->__ ('Welcome, %s! ' , $ this ->escapeHtml (Mage::getSingleton ('customer/session ' )->getCustomer ()->getName ()));
99105 } else {
100- $ this ->_data ['welcome ' ] = Mage::getStoreConfig ('design/header/welcome ' );
106+ $ this ->_data ['welcome ' ] = new Mage_Core_Model_Security_HtmlEscapedString (
107+ (string ) Mage::getStoreConfig ('design/header/welcome ' )
108+ );
101109 }
102110 }
103111
0 commit comments