Magento 1.2.0 out (found a little bug)

In: Magento

30 Dec 2008

Well, Magento 1.2.0 is out. Just downloaded it, installed and found a little bug :) If you go to product view page and look under Additional information section you will see raw HTML outputted to the screen. That is if you have assigned any of the additional information to the product you are viewing.

I provided two of the screenshots for you to see what am I talking about.

m120 m120b

And here is one way how you can fix this.

Open the following file
/app/code/core/Mage/Catalog/Block/Product/View/Attributes.php

Now on line 71 you will see the following code
$value = $this->htmlEscape($value);

Just replace it with
$value = $value;

My first impression on new Magento? Behaves faster… not sure, time will show :)

Interesting? Share it!
  • Digg
  • del.icio.us
  • Google
  • Technorati
  • Facebook
  • TwitThis
  • description

5 Responses to Magento 1.2.0 out (found a little bug)

Avatar

luxury furniture

December 30th, 2008 at 2:25 pm

ok, good, anyway for normal people without special coding needings it is all right, I’m right?

Avatar

Tony

December 30th, 2008 at 6:27 pm

1.2.0.1 is out now, is this fixed?

Avatar

Frank

December 30th, 2008 at 6:42 pm

I wonder if that was intentional to reduce validation issues on the pages?

Avatar

branko

December 31st, 2008 at 2:55 am

Hehe, hilarious… “new”, 1.2.0.1 version already up :) Cool

Avatar

Josh Ribakoff

February 3rd, 2009 at 5:49 pm

Shouldn’t you replace with htmlentities() so the output is still escaped?

Comment Form

About this site

Branko Ajzele Welcome to ActiveCodeline. My name is Branko Ajzele. I'm 26-year-old, currently working as full time PHP web application developer at Inchoo (in partnership with Surgeworks). My special interest and expertise evolve mainly around Zend Framework, Doctrine ORM, Magento eCommerce platform and few other related technologies.

More about me?
View Branko Ajzele's profile on LinkedIn
  • Uwe Stoll: Thanks for your valuable advice. Furthermore, I found it be important to use the backend generated [...]
  • Danny: Ah. I think I figured it out.. But 1 thing.. How can I have it appear at just the home page and on t [...]
  • Danny: I've set everything up as instructed on this page, but it still doesn't show up on the front page... [...]
  • Chris: [code] true local [/code] [...]
  • Chris: Looks like the author forgot to include a pool to which the code comes from. local or community. [...]

Categories