Search the Community
Showing results for tags 'escape'.
-
Hello, The emails being sent from my PrestaShop 1.7.4.1 instance (thru GMail SMTP) are looking funny as all the Nordic characters like "å", "ä" and "ö" are replaced with HTML entities like ä and ö. See an example in the attached image. The escape tags/elements are certainly not typed into the translations, as is seen in the second image attachment. I'd like to prevent this from happening. What should I do?
-
Nella traduzione in italiano della tabella degli ordini e' presente un'apostrofo sul titolo che non viene gestito correttamente durante la generazione della stringa in modo dinamico. $.each(res.orders, function() { html_orders += '<tr>'; html_orders += '<td>'+this.id_order+'</td><td>'+this.date_add+'</td><td>'+(this.nb_products ? this.nb_products : '0')+'</td><td>'+this.total_paid_real+'</span></td><td>'+this.payment+'</td><td>'+this.order_state+'</td>'; html_orders += '<td class="text-right">'; html_orders += '<a href="http://www.seemarket.it/adminSeeMarket1/index.php?controller=AdminOrders&token=044f6bcb4c945b2f05dba4752e40764e&id_order='+this.id_order+'&vieworder&liteDisplaying=1#" title="Vedi quest'ordine" class="fancybox btn btn-default"><i class="icon-search"></i> Dettagli</a>'; html_orders += ' <a href="#" "title="Duplica quest'ordine" class="duplicate_order btn btn-default" rel="'+this.id_order+'"><i class="icon-arrow-right"></i> Usa</a>'; html_orders += '</td>'; html_orders += '</tr>'; }); Questo causa l'interruzione prematura della stringa e conseguente errore su tutto il resto del codice rendendo inutilizzabile la parte della creazione di un nuovo ordine.
-
bonjour j'ai un soucis j'essaie d'afficher la description comme ceci: <p>{$product.description_short|escape:htmlall:'UTF-8'|truncate:25}</p> étant donné que la description est écrit en HTML , ça m'affiche les balise p comme ceci. <p>ma description</p> j'ai donc enlevé les balises dans mon code et ça affiche la meme chose je suis donc obligé d'aller dans ma base de données et enlevé les balise p merci
- 5 replies
-
- caractères
- accentués
- (and 5 more)
-
According to Prestashop Validator requirements, all tpl {$variables} have to be escaped ('htmlall', 'intval', etc.). What if a variable contais HTML code, and needs to be displayed as is, without escaping any tags, quotes ar anything else? Is there any option, like |escape:'none'? Or may be there is another way to validate this kind of variables?
-
I have developed a module for Prestashop and when I validate it on the validator, I get security issues saying that - Invalid escape modifiers count, could be escaped like: "{$data|escape:'htmlall':'UTF-8'}" When I use a integer, float or string variable, then I use html or htmlall to escape the vaiables, but what if I don't want to use any escape modifiers as the smarty variable may contain some html content and I don't want to escape the html in the variable. I was using unescape or escape:'':'UTF-8' before but now they have also removed it. So, what should I use now. Please help.
-
Hello tout le monde, Depuis peu j'ai les erreurs suivantes qui s'affichent en dessus de mon back-office un peu aléatoirement mais le plus souvent quand je suis dans les modules. [b]Warning[/b]: mysql_real_escape_string() [[url="http://castella-sports.ch/admin4549/function.mysql-real-escape-string"]function.mysql-real-escape-string[/url]]: Access denied for user '*********'@'localhost' (using password: NO) in [b]/home/httpd/vhosts/[/b]*********[b].ch/httpdocs/modules/devpro/classes/Tool.php[/b] on line [b]39[/b] [b]Warning[/b]: mysql_real_escape_string() [[url="http://castella-sports.ch/admin4549/function.mysql-real-escape-string"]function.mysql-real-escape-string[/url]]: A link to the server could not be established in [b]/home/httpd/vhosts/[/b]*********[b].ch/httpdocs/modules/devpro/classes/Tool.php[/b] on line [b]39[/b] [b]Warning[/b]: mysql_real_escape_string() [[url="http://castella-sports.ch/admin4549/function.mysql-real-escape-string"]function.mysql-real-escape-string[/url]]: Access denied for user '*********'@'localhost' (using password: NO) in [b]/home/httpd/vhosts/[/b]*********[b].ch/httpdocs/modules/devpro/classes/Tool.php[/b] on line [b]39[/b] [b]Warning[/b]: mysql_real_escape_string() [[url="http://castella-sports.ch/admin4549/function.mysql-real-escape-string"]function.mysql-real-escape-string[/url]]: A link to the server could not be established in [b]/home/httpd/vhosts/[/b]*********[b].ch/httpdocs/modules/devpro/classes/Tool.php[/b] on line [b]39[/b] Je ne suis pas sûr de ce que c'est exactement, mais selon ce que j'ai pu lire c'est un problème de connexion avec la DB, donc le problème se situerai niveau hébergement ou dans la mysql_connect? Dites-moi si je dis des insanités, je suis web designer alors mysql et moi… Merci!