From 7381540039985b4046b4adac018263304111243e Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 25 Nov 2018 20:04:01 +0000 Subject: [PATCH] Escaping the address field --- view/templates/admin/contactblock.tpl | 4 ++-- view/templates/hovercard.tpl | 2 +- view/templates/profile_vcard.tpl | 2 +- view/templates/remote_friends_common.tpl | 4 ++-- view/templates/search_item.tpl | 4 ++-- view/templates/wall_thread.tpl | 2 +- view/theme/duepuntozero/templates/profile_vcard.tpl | 2 +- view/theme/quattro/templates/profile_vcard.tpl | 2 +- view/theme/smoothly/templates/search_item.tpl | 4 ++-- view/theme/smoothly/templates/wall_thread.tpl | 6 +++--- view/theme/vier/templates/profile_vcard.tpl | 2 +- 11 files changed, 17 insertions(+), 17 deletions(-) diff --git a/view/templates/admin/contactblock.tpl b/view/templates/admin/contactblock.tpl index c9bfc2efd..e3dfb52a1 100644 --- a/view/templates/admin/contactblock.tpl +++ b/view/templates/admin/contactblock.tpl @@ -33,8 +33,8 @@ {{$contact.nickname|escape}} - {{$contact.name}} - {{$contact.addr}} + {{$contact.name|escaped}} + {{$contact.addr|escaped}} {{$contact.url}} {{/foreach}} diff --git a/view/templates/hovercard.tpl b/view/templates/hovercard.tpl index 74f270005..5487a4cd0 100644 --- a/view/templates/hovercard.tpl +++ b/view/templates/hovercard.tpl @@ -11,7 +11,7 @@

{{$profile.name|escape}}

{{if $profile.account_type}}{{$profile.account_type}}{{/if}}
- {{$profile.addr}} + {{$profile.addr|escaped}} {{if $profile.network}} ({{$profile.network}}){{/if}}
{{*{{if $profile.about}}
{{$profile.about}}
{{/if}}*}} diff --git a/view/templates/profile_vcard.tpl b/view/templates/profile_vcard.tpl index 6f8e86b29..fb7875641 100644 --- a/view/templates/profile_vcard.tpl +++ b/view/templates/profile_vcard.tpl @@ -3,7 +3,7 @@
{{$profile.name|escape}}
- {{if $profile.addr}}
{{$profile.addr}}
{{/if}} + {{if $profile.addr}}
{{$profile.addr|escaped}}
{{/if}} {{if $profile.pdesc}}
{{$profile.pdesc}}
{{/if}} diff --git a/view/templates/remote_friends_common.tpl b/view/templates/remote_friends_common.tpl index 354c8e46a..f018727c0 100644 --- a/view/templates/remote_friends_common.tpl +++ b/view/templates/remote_friends_common.tpl @@ -6,12 +6,12 @@
diff --git a/view/templates/search_item.tpl b/view/templates/search_item.tpl index fbcf770f1..462624957 100644 --- a/view/templates/search_item.tpl +++ b/view/templates/search_item.tpl @@ -7,7 +7,7 @@ onmouseover="if (typeof t{{$item.id}} != 'undefined') clearTimeout(t{{$item.id}}); openMenu('wall-item-photo-menu-button-{{$item.id}}')" onmouseout="t{{$item.id}}=setTimeout('closeMenu(\'wall-item-photo-menu-button-{{$item.id}}\'); closeMenu(\'wall-item-photo-menu-{{$item.id}}\');',200)"> - {{$item.name}} + {{$item.name|escaped}} menu
- {{$item.name}} + {{$item.name|escaped}}
{{$item.ago}}
diff --git a/view/templates/wall_thread.tpl b/view/templates/wall_thread.tpl index 63a8364f8..113a93e8c 100644 --- a/view/templates/wall_thread.tpl +++ b/view/templates/wall_thread.tpl @@ -44,7 +44,7 @@
- {{$item.name}}{{if $item.owner_url}} {{$item.to}} {{$item.owner_name}} {{$item.vwall}}{{/if}}
+ {{$item.name|escaped}}{{if $item.owner_url}} {{$item.to}} {{$item.owner_name|escaped}} {{$item.vwall}}{{/if}}
diff --git a/view/theme/duepuntozero/templates/profile_vcard.tpl b/view/theme/duepuntozero/templates/profile_vcard.tpl index 505cf560e..311132b81 100644 --- a/view/theme/duepuntozero/templates/profile_vcard.tpl +++ b/view/theme/duepuntozero/templates/profile_vcard.tpl @@ -3,7 +3,7 @@
{{$profile.name|escape}}
- {{if $profile.addr}}
{{$profile.addr}}
{{/if}} + {{if $profile.addr}}
{{$profile.addr|escaped}}
{{/if}} {{if $profile.pdesc}}
{{$profile.pdesc}}
{{/if}}
{{$profile.name|escape}}
diff --git a/view/theme/quattro/templates/profile_vcard.tpl b/view/theme/quattro/templates/profile_vcard.tpl index f999f1f57..e62da464d 100644 --- a/view/theme/quattro/templates/profile_vcard.tpl +++ b/view/theme/quattro/templates/profile_vcard.tpl @@ -26,7 +26,7 @@ {{/if}}
- {{if $profile.addr}}
{{$profile.addr}}
{{/if}} + {{if $profile.addr}}
{{$profile.addr|escaped}}
{{/if}} {{if $pdesc}}
{{$profile.pdesc}}
{{/if}}
{{$profile.name|escape}}
diff --git a/view/theme/smoothly/templates/search_item.tpl b/view/theme/smoothly/templates/search_item.tpl index d441ebe2d..35820088b 100644 --- a/view/theme/smoothly/templates/search_item.tpl +++ b/view/theme/smoothly/templates/search_item.tpl @@ -6,7 +6,7 @@ onmouseover="if (typeof t{{$item.id}} != 'undefined') clearTimeout(t{{$item.id}}); openMenu('wall-item-photo-menu-button-{{$item.id}}')" onmouseout="t{{$item.id}}=setTimeout('closeMenu(\'wall-item-photo-menu-button-{{$item.id}}\'); closeMenu(\'wall-item-photo-menu-{{$item.id}}\');',200)"> - {{$item.name}} + {{$item.name|escaped}} menu
- {{$item.name}} + {{$item.name|escaped}}
{{$item.ago}}
diff --git a/view/theme/smoothly/templates/wall_thread.tpl b/view/theme/smoothly/templates/wall_thread.tpl index 5aaa9c4eb..f4c4154a0 100644 --- a/view/theme/smoothly/templates/wall_thread.tpl +++ b/view/theme/smoothly/templates/wall_thread.tpl @@ -15,7 +15,7 @@ {{if $item.owner_url}}
- {{$item.owner_name}} + {{$item.owner_name|escaped}}
{{$item.wall}}
{{/if}} @@ -23,7 +23,7 @@ onmouseover="if (typeof t{{$item.id}} != 'undefined') clearTimeout(t{{$item.id}}); openMenu('wall-item-photo-menu-button-{{$item.id}}')" onmouseout="t{{$item.id}}=setTimeout('closeMenu(\'wall-item-photo-menu-button-{{$item.id}}\'); closeMenu(\'wall-item-photo-menu-{{$item.id}}\');',200)"> - {{$item.name}} + {{$item.name|escaped}} menu