Post by splach » Fri Jan 16, 2009 2:52 pm

if you have a double quote, say for inches, in the product name, when you go to edit the product the name is cut off at the double quote. I am assuming that there needs to be an extra escape added to the quote either when it is being stored or parsed.

Newbie

Posts

Joined
Fri Jan 16, 2009 12:25 pm

Post by JNeuhoff » Fri Jan 16, 2009 7:54 pm

I can confirm this bug for 0.7.9RC6, and propose the following fix:

Replace line 452 in file /admin/controller/product.php

Old line:

Code: Select all

	    		'name'        => (isset($name[$result['language_id']]) ? $name[$result['language_id']] : @$product_description_info['name']),
New line:

Code: Select all

	    		'name'        => htmlentities((isset($name[$result['language_id']]) ? $name[$result['language_id']] : @$product_description_info['name'])),

MHC Web Design
Override Engine * Integrated VQMod * Multilingual SEO * Instant Option Price Calculator * TrustPilot Reviews * Download Options * Free Download Buttons * Export/Import Tool * Template Switcher PHP/Twig


User avatar
Expert Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by hm2k » Mon Jan 19, 2009 12:06 am

Proper fix in r343.

UK Web Hosting


User avatar
Global Moderator

Posts

Joined
Tue Mar 11, 2008 9:06 am
Location - UK
Who is online

Users browsing this forum: No registered users and 1 guest