From 88823dc5ebd0beecd5114054205b8a771fa6a939 Mon Sep 17 00:00:00 2001 From: dMetzger Date: Mon, 6 Aug 2012 09:32:32 +0000 Subject: [PATCH] [-] FO : double escape removed #PSCFV-3530 (already done in the controller) git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16710 b9a71923-0436-4b27-9f14-aed3839534dd --- themes/default/authentication.tpl | 66 +++++++++++++++---------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/themes/default/authentication.tpl b/themes/default/authentication.tpl index 61527e0a1..7ee038464 100644 --- a/themes/default/authentication.tpl +++ b/themes/default/authentication.tpl @@ -38,7 +38,7 @@ countriesNeedZipCode = new Array(); {if isset($country.states) && $country.contains_states} countries[{$country.id_country|intval}] = new Array(); {foreach from=$country.states item='state' name='states'} - countries[{$country.id_country|intval}].push({ldelim}'id' : '{$state.id_state}', 'name' : '{$state.name|escape:'htmlall':'UTF-8'}'{rdelim}); + countries[{$country.id_country|intval}].push({ldelim}'id' : '{$state.id_state}', 'name' : '{$state.name|addslashes}'{rdelim}); {/foreach} {/if} {if $country.need_identification_number} @@ -50,7 +50,7 @@ countriesNeedZipCode = new Array(); {/foreach} {/if} $(function(){ldelim} - $('.id_state option[value={if isset($smarty.post.id_state)}{$smarty.post.id_state}{else}{if isset($address)}{$address->id_state|escape:'htmlall':'UTF-8'}{/if}{/if}]').attr('selected', true); + $('.id_state option[value={if isset($smarty.post.id_state)}{$smarty.post.id_state}{else}{if isset($address)}{$address->id_state|intval}{/if}{/if}]').attr('selected', true); {rdelim}); //]]> {if $vat_management} @@ -159,7 +159,7 @@ $(function(){ldelim}

- +

{if isset($back)}{/if} @@ -176,11 +176,11 @@ $(function(){ldelim}

- +

- +

{l s='Forgot your password?'}

@@ -223,7 +223,7 @@ $(function(){ldelim} {* @@ -243,13 +243,13 @@ $(function(){ldelim}

@@ -302,7 +302,7 @@ $(function(){ldelim}

@@ -378,15 +378,15 @@ $(function(){ldelim}

- +

- +

- +

@@ -398,7 +398,7 @@ $(function(){ldelim} {* @@ -418,13 +418,13 @@ $(function(){ldelim}

@@ -444,19 +444,19 @@ $(function(){ldelim}

{l s='Your company information'}

- +

- +

- +

- +

{/if} @@ -467,46 +467,46 @@ $(function(){ldelim} {if $field_name eq "company"}

- +

{elseif $field_name eq "vat_number"} {elseif $field_name eq "firstname"}

- +

{elseif $field_name eq "lastname"}

- +

{elseif $field_name eq "address1"}

- + {l s='Street address, P.O. box, company name, c/o'}

{elseif $field_name eq "address2"}

- + {l s='Apartment, suite, unit, building, floor, etc.'}

{elseif $field_name eq "postcode"}

- +

{elseif $field_name eq "city"}

- +