@@ -57,9 +57,7 @@ public function setLogo($logo_src, $logo_alt)
5757    public  function  getLogoSrc ()
5858    {
5959        if  (empty ($ this  ->_data ['logo_src ' ])) {
60-             $ this  ->_data ['logo_src ' ] =  new  Mage_Core_Model_Security_HtmlEscapedString (
61-                 (string ) Mage::getStoreConfig ('design/header/logo_src ' )
62-             );
60+             $ this  ->_data ['logo_src ' ] = $ this  ->escapeHtml ((string ) Mage::getStoreConfig ('design/header/logo_src ' ));
6361        }
6462        return  $ this  ->getSkinUrl ($ this  ->_data ['logo_src ' ]);
6563    }
@@ -70,9 +68,7 @@ public function getLogoSrc()
7068    public  function  getLogoSrcSmall ()
7169    {
7270        if  (empty ($ this  ->_data ['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-             );
71+             $ this  ->_data ['logo_src_small ' ] = $ this  ->escapeHtml ((string ) Mage::getStoreConfig ('design/header/logo_src_small ' ));
7672        }
7773        return  $ this  ->getSkinUrl ($ this  ->_data ['logo_src_small ' ]);
7874    }
@@ -83,9 +79,7 @@ public function getLogoSrcSmall()
8379    public  function  getLogoAlt ()
8480    {
8581        if  (empty ($ this  ->_data ['logo_alt ' ])) {
86-             $ this  ->_data ['logo_alt ' ] = new  Mage_Core_Model_Security_HtmlEscapedString (
87-                 (string ) Mage::getStoreConfig ('design/header/logo_alt ' )
88-             );
82+             $ this  ->_data ['logo_alt ' ] = $ this  ->escapeHtml ((string ) Mage::getStoreConfig ('design/header/logo_alt ' ));
8983        }
9084        return  $ this  ->_data ['logo_alt ' ];
9185    }
@@ -103,9 +97,7 @@ public function getWelcome()
10397            if  (Mage::isInstalled () && Mage::getSingleton ('customer/session ' )->isLoggedIn ()) {
10498                $ this  ->_data ['welcome ' ] = $ this  ->__ ('Welcome, %s! ' , $ this  ->escapeHtml (Mage::getSingleton ('customer/session ' )->getCustomer ()->getName ()));
10599            } else  {
106-                 $ this  ->_data ['welcome ' ] = new  Mage_Core_Model_Security_HtmlEscapedString (
107-                     (string ) Mage::getStoreConfig ('design/header/welcome ' )
108-                 );
100+                 $ this  ->_data ['welcome ' ] = $ this  ->escapeHtml ((string ) Mage::getStoreConfig ('design/header/welcome ' ));
109101            }
110102        }
111103
0 commit comments