Skip to content

Commit

Permalink
Some escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
olance committed Aug 1, 2019
1 parent cd6148a commit ab847e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
{assign var='value_text' value=$fields_value[$input.name]}
<input type="number"
name="{$input.name|escape:'htmlall':'UTF-8'}"
id="{if isset($input.id)}{$input.id}{else}{$input.name|escape:'htmlall':'UTF-8'}{/if}"
id="{if isset($input.id)}{$input.id|escape:'htmlall':'UTF-8'}{else}{$input.name|escape:'htmlall':'UTF-8'}{/if}"
value="{$value_text|escape:'html':'UTF-8'}"
class="alma {if isset($input.class)}{$input.class|escape:'htmlall':'UTF-8'}{/if}"
{if isset($input.size)} size="{$input.size|escape:'htmlall':'UTF-8'}"{/if}
Expand Down
8 changes: 4 additions & 4 deletions alma/views/templates/hook/pnx_fees.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<br>
{if $fee_plan["merchant_fee_variable"] > 0}
<b>{l s='You pay:' mod='alma'}</b>
{rtrim(sprintf("%.2f", $fee_plan["merchant_fee_variable"] / 100.0), '.0')}%
{rtrim(sprintf("%.2f", $fee_plan["merchant_fee_variable"] / 100.0), '.0')|escape:'htmlall':'UTF-8'}%
{/if}

{if $fee_plan["merchant_fee_fixed"] > 0}
Expand All @@ -47,13 +47,13 @@
{else}
+
{/if}
{rtrim(sprintf("%.2f", $fee_plan["merchant_fee_fixed"] / 100.0), '.0')}
{rtrim(sprintf("%.2f", $fee_plan["merchant_fee_fixed"] / 100.0), '.0')|escape:'htmlall':'UTF-8'}
{/if}

{if $fee_plan["customer_fee_variable"] > 0}
<br>
<b>{l s='Customers pay:' mod='alma'}</b>
{rtrim(sprintf("%.2f", $fee_plan["customer_fee_variable"] / 100.0), '.0')}%
{rtrim(sprintf("%.2f", $fee_plan["customer_fee_variable"] / 100.0), '.0')|escape:'htmlall':'UTF-8'}%
{/if}

{if $fee_plan["customer_fee_fixed"] > 0}
Expand All @@ -63,7 +63,7 @@
{else}
+
{/if}
{rtrim(sprintf("%.2f", $fee_plan["customer_fee_fixed"] / 100.0), '.0')}
{rtrim(sprintf("%.2f", $fee_plan["customer_fee_fixed"] / 100.0), '.0')|escape:'htmlall':'UTF-8'}
{/if}

<br><br>
Expand Down

0 comments on commit ab847e5

Please sign in to comment.