News:

Support the VirtueMart project and become a member

Main Menu

bug Save category description

Started by worknmn, September 16, 2015, 22:44:07 PM

Previous topic - Next topic

worknmn

Joomla! 3.4.4, Virtuemart 3.0.9

Then save category VM add HTML symbols &#13;&#10; after tags <p>

This is error with w3c html validation "A numeric character reference expanded to carriage return."

I found /administrator/components/com_virtuemart/controllers/category.php

$data['category_description'] = vRequest::getHtml('category_description','');

And in /autotuning-aks.ru/administrator/components/com_virtuemart/helpers/vrequest.php

   public static function getHtml($name, $default = '', $input = 0){
      $tmp = self::get($name, $default,FILTER_UNSAFE_RAW,FILTER_FLAG_ENCODE_LOW,$input);

But in product save use ( /administrator/components/com_virtuemart/controllers/product.php)

         $data['product_desc'] = vRequest::get('product_desc','');
         $data['product_s_desc'] = vRequest::get('product_s_desc','');
         $data['customtitle'] = vRequest::get('customtitle','');

I.e. save without filtering HTML symbols
my site: sagip.ru