VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: dorkus on September 09, 2014, 15:20:29 PM

Title: HTML not saved in vm product description
Post by: dorkus on September 09, 2014, 15:20:29 PM
hi there,

when we edit product description with html tables, all html information gets removed when we save the item.

it is working fine with joomla articles etc. we tried jce and other editors - still not saving. "admin" is assigned properly in vm shop admin and there is no filtering for superadmin user.

any ideas?

system is joomla 2.5.24 with vm 2.6.6 on php 4.3

thanks so much!
Title: Re: HTML not saved in vm product description
Post by: jenkinhill on September 09, 2014, 16:10:44 PM
To allow admins to add code which is not sanitized I use Sourcerer (http://extensions.joomla.org/extensions/core-enhancements/coding-a-scripts-integration/custom-code-in-content/5051)
Title: Re: HTML not saved in vm product description
Post by: dorkus on September 09, 2014, 16:28:38 PM
it was working flawlessly in vm 2.0.26d which we upgraded from to vm 2.6.6 - as soon as i edit product description, all tables are gone which is weird?!?! is this a bug?

is it generally forbidden in vm 2.6.6. no matter what editor is used??
Title: Re: HTML not saved in vm product description
Post by: jenkinhill on September 09, 2014, 17:06:24 PM
I have always used Sourcerer so would not test that.
Title: Re: HTML not saved in vm product description
Post by: dorkus on September 09, 2014, 17:22:06 PM
i will certainly test this - but - each new component means additional security risks. and it used to work without?!?
Title: Re: HTML not saved in vm product description
Post by: jenkinhill on September 09, 2014, 18:10:43 PM
Allowing store owners to put un-sanitized code into a product description could also be a security risk.  I just tested this with VM2.9.9b (which is the version I am now working with) and code can be added into the product desc by superadmin, but not by an admin, even with the right ACL permissions set. That is the function I would expect to see.
Title: Re: HTML not saved in vm product description
Post by: dorkus on October 13, 2014, 19:33:36 PM
so i tested sourcer free version and it still removes me all HTML from product description. it works fine for other content pages. just virtuemart removes all html tabs. it is soooo weird, i dont know what to do anymore. please help...

here's the table i try to add:


<table>
<tbody>
<tr>
<td rowspan="4" align="left" height="130" valign="top"></td>
<td height="25"><strong>Größe</strong>
</td>
<td><strong>S</strong>
</td>
<td><strong>M</strong>
</td>
<td><strong>L</strong>
</td>
<td><strong>XL</strong>
</td>
<td><strong>XXL</strong>
</td>
</tr>
<tr>
<td height="25">Weite*</td>
<td>50</td>
<td>53</td>
<td>56</td>
<td>60</td>
<td>64</td>
</tr>
<tr>
<td height="25">Länge**</td>
<td>70</td>
<td>72</td>
<td>74</td>
<td>76</td>
<td>78</td>
</tr>
<tr>
<td colspan="6" height="55">
<p><strong>Zu beachten:</strong> Die Daten sind Herstellerangaben ohne Gewähr. Die Daten können bis zu 5% abweichen.</p>
<p>* Maßeinheit 2cm unterhalb der Armöffnung, quer entlang des Kleidungsstücks.<br />** Maßeinheit ausgehend vom höchsten Punkt der Schulter, bis zum unteren Rand des Kleidungsstücks.</p>
</td>
</tr>
</tbody>
</table>
Title: Re: HTML not saved in vm product description
Post by: dorkus on February 16, 2015, 10:45:20 AM
i still have this problem. does anybody else have this??? we are running 2.5.28 & vm 2.6.14 now.

please advise....