Author Topic: Quotation mark in category name  (Read 329 times)

d0ublezer0

  • Jr. Member
  • **
  • Posts: 147
Quotation mark in category name
« on: September 15, 2017, 14:16:13 pm »
vm 3.2.4
j3.7.5
Disappear when saved and then opened:

create category
Category with "Quotes"
save it
open it
you will see that your category name will be as:
Category with

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 2974
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: Quotation mark in category name
« Reply #1 on: September 17, 2017, 01:39:58 am »
Same for Product(i corrected it for a customer), but i don't report anymore such bugs because i don't want to do sned patch only for 1 line.

d0ublezer0

  • Jr. Member
  • **
  • Posts: 147
Re: Quotation mark in category name
« Reply #2 on: May 13, 2018, 17:09:06 pm »
VM3.2.12 problem is still here

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 2974
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: Quotation mark in category name
« Reply #3 on: May 13, 2018, 20:57:04 pm »
This is the fix i use for products
File is JOOMLAROOT/administrator/components/com_virtuemart/views/product/tmpl/product_edit_information.php
Code: [Select]
<input class="required inputbox" type="text" name="product_name" id="product_name" value="<?php echo htmlentities($this->product->product_nameENT_QUOTES"UTF-8"); ?>" size="32" maxlength="400" />This is the code to use in any input(not textarea) to support quotes
Code: [Select]
htmlentities($yourValue, ENT_QUOTES, "UTF-8");