Encoding bug for the products grid

  • Posts: 134
  • Thank you received: 6
9 years 8 months ago #194995

-- 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!

Attachments:
Last edit: 9 years 8 months ago by filiar.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 8 months ago #195005

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

echo htmlentities($product->product_name);
By
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.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 8 months ago #195007

Hi,

Easier solution, in the view "productmarket | listing", replace the

htmlentities($product->product_name)
By
$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.

  • Posts: 134
  • Thank you received: 6
9 years 8 months ago #195095

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.060 seconds
Powered by Kunena Forum