From: Michael Date: Sun, 25 Nov 2018 20:04:01 +0000 (+0000) Subject: Escaping the address field X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7381540039985b4046b4adac018263304111243e;p=friendica.git Escaping the address field --- diff --git a/view/templates/admin/contactblock.tpl b/view/templates/admin/contactblock.tpl index c9bfc2efd0..e3dfb52a12 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 74f2700052..5487a4cd05 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 6f8e86b299..fb78756415 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 354c8e46a2..f018727c06 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 fbcf770f1b..462624957e 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 63a8364f88..113a93e8c9 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 505cf560e3..311132b815 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 f999f1f572..e62da464d9 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 d441ebe2de..35820088b5 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 5aaa9c4eb1..f4c4154a02 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