Automatic addslashes when creating a category description(FIXED)
Hello, when I use the ' in the category description, the description automatically "addslashed" resulting in this :
Any kind of equipment that doesn\'t fit into another category.
Thanks
Thanks for the answer but I encountered the same problem when updating templates. I update some templates via the admin section and all the updated templates code are automatically "addslashed" resulting in code execution error. Here an example of a part of the menubar.tmpl after the update :
<?php
echo <<<PPPRINT
$ppopen
<tr>
<td class=\"{$Style[\'menubar\']}\" width=\"100%\" colspan=\"2\">
<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<!-- modif knapy inversion des menu et menu 2 --->
<td class=\"{$Style[\'menubarnb\']}\" width=\"50%\" align=\"left\" valign=\"middle\">
$menu
</td>
<td class=\"{$Style[\'menubarnb\']}\" width=\"50%\" align=\"right\"valign=\"middle\">
$menu2
</td>
</tr>
</table>
</td>
As you can see all the code has been "addslashed".
Greetings
Hello, I used the updated adm-misc.php file to test but the problem remains the same. I corrected the templates via my editor and they work fine again but when I want to update them via the admin section, the problem is still there.
Greetings
OK, but even if I remove the slashes manually, the templates stays automatically "addslshed" for all the characters like " or '. Have a look at the diewell.tmpl template after 3 saves using the updated adm-misc.php file you provided me (I didn't remove the slashes manually between saves for showing the problem):
<?php
?>
I never had that problem before. It started after 2.41 installation. I update my templates via my html editor now but I would like to know also if other people have this kind of problem when they update via admin ?