Skip to main content

Encoding bug for the products grid

More
11 years 6 months ago - 11 years 6 months ago #194995 by filiar
-- HikaShop version -- : 2.4.0
-- HikaMarket version -- : 1.6.1
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4.16

Hi,

For the products grid non UTF characters for the product description links are not shown as expected after update:

In the product edit page no such problem exists and the names are correctly displayed



Regards!
Last edit: 11 years 6 months ago by filiar.

Please Log in or Create an account to join the conversation.

More
11 years 6 months ago #195005 by Jerome
Hi,

The modification has been introduced in HikaMarket 1.6.0 ; the product name is now "secured" with an "htmlentities" ; so it does not display the HTML code if a vendor enter a "<strong>" in the product name it will not put the text in bold.
I will see to perform some new tests but for the moment you can create a view override for the view "productmarket | listing" and replace the
Code:
echo htmlentities($product->product_name);
By
Code:
echo $product->product_name;
Maybe a htmlspecialchars would be better and I'll also see to force the UTF8 encoding.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

More
11 years 6 months ago #195007 by Jerome
Hi,

Easier solution, in the view "productmarket | listing", replace the
Code:
htmlentities($product->product_name)
By
Code:
$this->escape($product->product_name)
To use the right function with the right encoding.
(It will be added in the next release).

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

More
11 years 6 months ago #195095 by filiar
Thank You, Jerome.

That solved the encoding issue.

Regards!

Please Log in or Create an account to join the conversation.

Moderators: Obsidev
Time to create page: 0.215 seconds
Powered by Kunena Forum