Skip to content

Commit f4b3da7

Browse files
Merge pull request #285 from colemanw/escape-htmlattribute
Ensure html attributes are escaped in templates
2 parents 9f14624 + 466de96 commit f4b3da7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

templates/CRM/Core/Page/PaymentPage.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
>
1616
{* this is a hack in core & it's a hack here... *}
1717
{if $core_field_name == 'cvv2'}
18-
<span class="cvv2-icon" title="{ts}Usually the last 3-4 digits in the signature area on the back of the card.{/ts}"> </span>
18+
<span class="cvv2-icon" title="{ts escape='htmlattribute'}Usually the last 3-4 digits in the signature area on the back of the card.{/ts}"> </span>
1919
{/if}
2020
{if $core_field_name == 'credit_card_type'}
2121
<div class="crm-credit_card_type-icons"></div>
@@ -68,7 +68,7 @@
6868
{/foreach}
6969
{if empty($display_fields)}<p>{ts}Please Click the pay now button if you are not automatically redirected{/ts}</p>{/if}
7070
71-
<input class='form-submit default crm-form-submit' type="submit" value="{ts}Pay now{/ts}">
71+
<input class='form-submit default crm-form-submit' type="submit" value="{ts escape='htmlattribute'}Pay now{/ts}">
7272
{* jQuery validate *}
7373
{include file="CRM/Form/validate.tpl"}
7474
</form>

0 commit comments

Comments
 (0)