Escape category images to avoid backend XSS
This commit is contained in:
parent
464c1319ad
commit
fa8e77c130
@ -10,7 +10,7 @@
|
||||
</header>
|
||||
|
||||
<div class="clearfix content serendipity_entry_body">
|
||||
{if $entry.categories}{foreach from=$entry.categories item="entry_category"}{if $entry_category.category_icon}<a href="{$entry_category.category_link}"><img class="serendipity_entryIcon" title="{$entry_category.category_name|escape}{$entry_category.category_description|@emptyPrefix}" alt="{$entry_category.category_name|escape}" src="{$entry_category.category_icon}"></a>{/if}{/foreach}{/if}
|
||||
{if $entry.categories}{foreach from=$entry.categories item="entry_category"}{if $entry_category.category_icon}<a href="{$entry_category.category_link}"><img class="serendipity_entryIcon" title="{$entry_category.category_name|escape}{$entry_category.category_description|@emptyPrefix}" alt="{$entry_category.category_name|escape}" src="{$entry_category.category_icon|escape}"></a>{/if}{/foreach}{/if}
|
||||
{$entry.body}
|
||||
{if $entry.has_extended and not $is_single_entry and not $entry.is_extended}
|
||||
<a class="read_more block_level" href="{$entry.link}#extended">{$CONST.VIEW_EXTENDED_ENTRY|@sprintf:$entry.title}</a>
|
||||
|
@ -13,7 +13,7 @@
|
||||
</header>
|
||||
|
||||
<div class="post_content clearfix">
|
||||
{if $entry.categories}{foreach from=$entry.categories item="entry_category"}{if $entry_category.category_icon}<a href="{$entry_category.category_link}"><img class="serendipity_entryIcon" title="{$entry_category.category_name|escape}{$entry_category.category_description|emptyPrefix}" alt="{$entry_category.category_name|escape}" src="{$entry_category.category_icon}"></a>{/if}{/foreach}{/if}
|
||||
{if $entry.categories}{foreach from=$entry.categories item="entry_category"}{if $entry_category.category_icon}<a href="{$entry_category.category_link}"><img class="serendipity_entryIcon" title="{$entry_category.category_name|escape}{$entry_category.category_description|emptyPrefix}" alt="{$entry_category.category_name|escape}" src="{$entry_category.category_icon|escape}"></a>{/if}{/foreach}{/if}
|
||||
{$entry.body}
|
||||
{if $entry.has_extended and not $is_single_entry and not $entry.is_extended}
|
||||
<a class="post_more btn btn-outline-primary btn-sm d-inline-block mb-3" href="{$entry.link}#extended">{$CONST.VIEW_EXTENDED_ENTRY|sprintf:$entry.title}</a>
|
||||
|
@ -126,7 +126,7 @@
|
||||
<span class="serendipity_entryIcon">
|
||||
{foreach from=$entry.categories item="entry_category"}
|
||||
{if $entry_category.category_icon}
|
||||
<a href="{$entry_category.category_link}"><img class="serendipity_entryIcon" title="{$entry_category.category_name|@escape}{$entry_category.category_description|@emptyPrefix}" alt="{$entry_category.category_name|@escape}" src="{$entry_category.category_icon}" /></a>
|
||||
<a href="{$entry_category.category_link}"><img class="serendipity_entryIcon" title="{$entry_category.category_name|@escape}{$entry_category.category_description|@emptyPrefix}" alt="{$entry_category.category_name|@escape}" src="{$entry_category.category_icon|escape}" /></a>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</span>
|
||||
|
@ -16,7 +16,7 @@
|
||||
{if $template_option.entrybody_detailed_only != true || $entry.is_extended || $is_single_entry || $is_preview}
|
||||
<section id="entry">
|
||||
<div class="content serendipity_entry_body clearfix">
|
||||
{if $entry.categories}{foreach from=$entry.categories item="entry_category"}{if $entry_category.category_icon}<a href="{$entry_category.category_link}"><img class="serendipity_entryIcon" title="{$entry_category.category_name|@escape}{$entry_category.category_description|@emptyPrefix}" alt="{$entry_category.category_name|@escape}" src="{$entry_category.category_icon}"></a>{/if}{/foreach}{/if}
|
||||
{if $entry.categories}{foreach from=$entry.categories item="entry_category"}{if $entry_category.category_icon}<a href="{$entry_category.category_link}"><img class="serendipity_entryIcon" title="{$entry_category.category_name|@escape}{$entry_category.category_description|@emptyPrefix}" alt="{$entry_category.category_name|@escape}" src="{$entry_category.category_icon|escape}"></a>{/if}{/foreach}{/if}
|
||||
{$entry.body}
|
||||
{if $entry.has_extended and not $is_single_entry and not $entry.is_extended}
|
||||
<a class="read_more" href="{$entry.link}#extended"><button class="btn btn-md btn-default pull-right">{$CONST.READ_MORE} <i class="fa fa-arrow-right" aria-hidden="true"></i></button></a>
|
||||
|
@ -20,7 +20,7 @@
|
||||
<span class="serendipity_entryIcon">
|
||||
{foreach from=$entry.categories item="entry_category"}
|
||||
{if $entry_category.category_icon}
|
||||
<a href="{$entry_category.category_link}"><img class="serendipity_entryIcon" title="{$entry_category.category_name|@escape}{$entry_category.category_description|@emptyPrefix}" alt="{$entry_category.category_name|@escape}" src="{$entry_category.category_icon}" /></a>
|
||||
<a href="{$entry_category.category_link}"><img class="serendipity_entryIcon" title="{$entry_category.category_name|@escape}{$entry_category.category_description|@emptyPrefix}" alt="{$entry_category.category_name|@escape}" src="{$entry_category.category_icon|escape}" /></a>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</span>
|
||||
|
@ -56,7 +56,7 @@
|
||||
<span class="serendipity_entryIcon">
|
||||
{foreach from=$entry.categories item="entry_category"}
|
||||
{if $entry_category.category_icon}
|
||||
<a href="{$entry_category.category_link}"><img class="serendipity_entryIcon" title="{$entry_category.category_name|@escape}{$entry_category.category_description|@emptyPrefix}" alt="{$entry_category.category_name|@escape}" src="{$entry_category.category_icon}" /></a>
|
||||
<a href="{$entry_category.category_link}"><img class="serendipity_entryIcon" title="{$entry_category.category_name|@escape}{$entry_category.category_description|@emptyPrefix}" alt="{$entry_category.category_name|@escape}" src="{$entry_category.category_icon|escape}" /></a>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</span>
|
||||
|
@ -19,7 +19,7 @@
|
||||
<span class="serendipity_entryIcon">
|
||||
{foreach from=$entry.categories item="entry_category"}
|
||||
{if $entry_category.category_icon}
|
||||
<a href="{$entry_category.category_link}"><img class="serendipity_entryIcon" title="{$entry_category.category_name|@escape}{$entry_category.category_description|@emptyPrefix}" alt="{$entry_category.category_name|@escape}" src="{$entry_category.category_icon}" /></a>
|
||||
<a href="{$entry_category.category_link}"><img class="serendipity_entryIcon" title="{$entry_category.category_name|@escape}{$entry_category.category_description|@emptyPrefix}" alt="{$entry_category.category_name|@escape}" src="{$entry_category.category_icon|escape}" /></a>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</span>
|
||||
|
@ -10,7 +10,7 @@
|
||||
</header>
|
||||
|
||||
<div class="post_content">
|
||||
{if $entry.categories}{foreach from=$entry.categories item="entry_category"}{if $entry_category.category_icon}<a href="{$entry_category.category_link}"><img class="serendipity_entryIcon" title="{$entry_category.category_name|escape}{$entry_category.category_description|emptyPrefix}" alt="{$entry_category.category_name|escape}" src="{$entry_category.category_icon}"></a>{/if}{/foreach}{/if}
|
||||
{if $entry.categories}{foreach from=$entry.categories item="entry_category"}{if $entry_category.category_icon}<a href="{$entry_category.category_link}"><img class="serendipity_entryIcon" title="{$entry_category.category_name|escape}{$entry_category.category_description|emptyPrefix}" alt="{$entry_category.category_name|escape}" src="{$entry_category.category_icon|escape}"></a>{/if}{/foreach}{/if}
|
||||
{$entry.body}
|
||||
{if $entry.has_extended and not $is_single_entry and not $entry.is_extended}
|
||||
<a class="button read_more" href="{$entry.link}#extended">{$CONST.VIEW_EXTENDED_ENTRY|sprintf:$entry.title}</a>
|
||||
|
@ -92,7 +92,7 @@
|
||||
{/if}
|
||||
{/if}
|
||||
<div class="serendipity_entry_body clearfix">
|
||||
{if $entry.categories}{foreach from=$entry.categories item="entry_category"}{if $entry_category.category_icon}<a href="{$entry_category.category_link}"><img class="serendipity_entryIcon" title="{$entry_category.category_name|@escape}{$entry_category.category_description|@emptyPrefix}" alt="{$entry_category.category_name|@escape}" src="{$entry_category.category_icon}"></a>{/if}{/foreach}{/if}
|
||||
{if $entry.categories}{foreach from=$entry.categories item="entry_category"}{if $entry_category.category_icon}<a href="{$entry_category.category_link}"><img class="serendipity_entryIcon" title="{$entry_category.category_name|@escape}{$entry_category.category_description|@emptyPrefix}" alt="{$entry_category.category_name|@escape}" src="{$entry_category.category_icon|escape}"></a>{/if}{/foreach}{/if}
|
||||
{$entry.body}
|
||||
</div>
|
||||
{if $entry.is_extended}
|
||||
|
Loading…
x
Reference in New Issue
Block a user