]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #6314 from MrPetovan/task/6208-escape-html-true
authorMichael Vogel <icarus@dabo.de>
Mon, 24 Dec 2018 07:40:30 +0000 (08:40 +0100)
committerGitHub <noreply@github.com>
Mon, 24 Dec 2018 07:40:30 +0000 (08:40 +0100)
 Fix template escaping in photo gallery view

view/templates/email_notify_html.tpl
view/templates/photo_view.tpl
view/theme/frio/templates/photo_view.tpl
view/theme/quattro/templates/photo_view.tpl
view/theme/vier/templates/photo_view.tpl

index 94fac7447134f5ad9c86b36e274d5686efa9604d..d9eeb841fd9b22a50cfce991022878bbefdf0331 100644 (file)
@@ -1,4 +1,3 @@
-
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional //EN">
 <html>
 <head>
@@ -6,28 +5,33 @@
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
 </head>
 <body>
-<table style="border:1px solid #ccc">
+       <table style="border:1px solid #ccc">
        <tbody>
-       <tr><td colspan="2" style="background:#084769; color:#FFFFFF; font-weight:bold; font-family:'lucida grande', tahoma, verdana,arial, sans-serif; padding: 4px 8px; vertical-align: middle; font-size:16px; letter-spacing: -0.03em; text-align: left;"><img style="width:32px;height:32px; float:left;" src='{{$siteurl}}/images/friendica-32.png'><div style="padding:7px; margin-left: 5px; float:left; font-size:18px;letter-spacing:1px;">{{$product}}</div><div style="clear: both;"></div></td></tr>
-
+               <tr>
+                       <td colspan="2" style="background:#084769; color:#FFFFFF; font-weight:bold; font-family:'lucida grande', tahoma, verdana,arial, sans-serif; padding: 4px 8px; vertical-align: middle; font-size:16px; letter-spacing: -0.03em; text-align: left;">
+                               <img style="width:32px;height:32px; float:left;" src='{{$siteurl}}/images/friendica-32.png'>
+                               <div style="padding:7px; margin-left: 5px; float:left; font-size:18px;letter-spacing:1px;">{{$product}}</div>
+                               <div style="clear: both;"></div>
+                       </td>
+               </tr>
 
-       <tr><td style="padding-top:22px;" colspan="2">{{$preamble}}</td></tr>
+               <tr><td colspan="2" style="padding-top:22px;">{{$preamble nofilter}}</td></tr>
 
-
-       {{if $content_allowed}}
+{{if $content_allowed}}
        {{if $source_photo}}
-       <tr><td style="padding-left:22px;padding-top:22px;width:60px;" valign="top" rowspan=3><a href="{{$source_link}}"><img style="border:0px;width:48px;height:48px;" src="{{$source_photo}}"></a></td>
-               <td style="padding-top:22px;"><a href="{{$source_link}}">{{$source_name}}</a></td></tr>
-       {{/if}}
-       <tr><td style="font-weight:bold;padding-bottom:5px;">{{$title}}</td></tr>
-       <tr><td style="padding-right:22px;">{{$htmlversion}}</td></tr>
-       {{/if}}
-       <tr><td style="padding-top:11px;" colspan="2">{{$hsitelink}}</td></tr>
-       <tr><td style="padding-bottom:11px;" colspan="2">{{$hitemlink}}</td></tr>
-       <tr><td></td><td>{{$thanks}}</td></tr>
-       <tr><td></td><td>{{$site_admin}}</td></tr>
+               <tr>
+                       <td style="padding-left:22px;padding-top:22px;width:60px;" valign="top" rowspan=3><a href="{{$source_link}}"><img style="border:0px;width:48px;height:48px;" src="{{$source_photo}}"></a></td>
+                       <td style="padding-top:22px;"><a href="{{$source_link}}">{{$source_name}}</a></td>
+               </tr>
+               {{/if}}
+               <tr><td style="font-weight:bold;padding-bottom:5px;">{{$title}}</td></tr>
+               <tr><td style="padding-right:22px;">{{$htmlversion nofilter}}</td></tr>
+{{/if}}
+               <tr><td colspan="2" style="padding-top:11px;">{{$hsitelink nofilter}}</td></tr>
+               <tr><td colspan="2" style="padding-bottom:11px;">{{$hitemlink nofilter}}</td></tr>
+               <tr><td></td><td>{{$thanks}}</td></tr>
+               <tr><td></td><td>{{$site_admin}}</td></tr>
        </tbody>
-</table>
+       </table>
 </body>
 </html>
-
index d5c3d68269f5ac0f344dfce07e5a90f4688800b4..4f5be40fc500f1e251db1db71941e3b0ff5b4b04 100644 (file)
 {{/if}}
 {{if $tags.2}}<div id="tag-remove"><a href="{{$tags.2}}">{{$tags.3}}</a></div>{{/if}}
 
-{{if $edit}}{{$edit}}{{/if}}
+{{if $edit}}{{$edit nofilter}}{{/if}}
 
 {{if $likebuttons}}
 <div id="photo-like-div">
-       {{$likebuttons}}
-       {{$like}}
-       {{$dislike}}    
+       {{$likebuttons nofilter}}
+       {{$like nofilter}}
+       {{$dislike nofilter}}
 </div>
 {{/if}}
 
-{{$comments}}
+{{$comments nofilter}}
 
 {{$paginate nofilter}}
 
index 1d39b16eefac7bfa03521f076dc393dedc4b600c..359c42669622c9f334451048c163f9c3f8c41717 100644 (file)
                {{/if}}
 
                {{* The part for editing the photo - only available for the edit subpage *}}
-               {{if $edit}}{{$edit}}{{/if}}
+               {{if $edit}}{{$edit nofilter}}{{/if}}
 
                {{if $likebuttons}}
                <div id="photo-like-div">
-                       {{$likebuttons}}
-                       {{$like}}
-                       {{$dislike}}
+                       {{$likebuttons nofilter}}
+                       {{$like nofilter}}
+                       {{$dislike nofilter}}
                </div>
                {{/if}}
                <hr>
@@ -82,7 +82,7 @@
 
        {{* Insert the comments *}}
        <div id="photo-comment-wrapper-{{$id}}" class="photo-comment-wrapper">
-               {{$comments}}
+               {{$comments nofilter}}
        </div>
 
        {{$paginate nofilter}}
index cd1a7ccc99d2b19d92651314bcb1d3267047022e..0b65c2c5352f5d87f03901a05992581f067df1ea 100644 (file)
 {{/if}}
 {{if $tags.2}}<div id="tag-remove"><a href="{{$tags.2}}">{{$tags.3}}</a></div>{{/if}}
 
-{{if $edit}}{{$edit}}{{/if}}
+{{if $edit}}{{$edit nofilter}}{{/if}}
 
 {{if $likebuttons}}
 <div id="photo-like-div">
-       {{$likebuttons}}
-       {{$like}}
-       {{$dislike}}    
+       {{$likebuttons nofilter}}
+       {{$like nofilter}}
+       {{$dislike nofilter}}
 </div>
 {{/if}}
 
 <div class="wall-item-comment-wrapper photo">
-    {{$comments}}
+    {{$comments nofilter}}
 </div>
 
 {{$paginate nofilter}}
index 21eda89b353b25136133aef9ebe11bb3f30134ba..aa3f7aadd5d03f99fdf634a40f77eeb39b27f629 100644 (file)
 {{/if}}
 {{if $tags.2}}<div id="tag-remove"><a href="{{$tags.2}}">{{$tags.3}}</a></div>{{/if}}
 
-{{if $edit}}{{$edit}}{{/if}}
+{{if $edit}}{{$edit nofilter}}{{/if}}
 
 {{if $likebuttons}}
 <div id="photo-like-div">
-       {{$likebuttons}}
-       {{$like}}
-       {{$dislike}}    
+       {{$likebuttons nofilter}}
+       {{$like nofilter}}
+       {{$dislike nofilter}}
 </div>
 {{/if}}
 
 <div class="wall-item-comment-wrapper photo">
-{{$comments}}
+       {{$comments nofilter}}
 </div>
 
 {{$paginate nofilter}}