Commit e9703c5c authored by chealer's avatar chealer

[FIX] HTML special chars encoding

parent b5caa81a
......@@ -52,7 +52,7 @@
<option value='' {if $find_type eq ''}selected="selected"{/if}>{tr}any type{/tr}</option>
{section name=t loop=$types}
<option value="{$types[t].type|escape}" {if $find_type eq $types[t].type}selected="selected"{/if}>
{tr}{$types[t].type}{/tr}
{capture}{tr}{$types[t].type}{/tr}{/capture}{$smarty.capture.default|escape}
</option>
{/section}
</select>
......@@ -65,7 +65,7 @@
<option value='' {if $find_topic eq ''}selected="selected"{/if}>{tr}all topic{/tr}</option>
{section name=ix loop=$topics}
<option value="{$topics[ix].topicId|escape}" {if $find_topic eq $topics[ix].topicId}selected="selected"{/if}>
{tr}{$topics[ix].name}{/tr}
{capture}{tr}{$topics[ix].name}{/tr}{/capture}{$smarty.capture.default|escape}
</option>
{/section}
</select>
......@@ -105,7 +105,7 @@
<option value='' {if $find_categId eq ''}selected="selected"{/if}>{tr}any category{/tr}</option>
{section name=ix loop=$categories}
<option value="{$categories[ix].categId|escape}" {if $find_categId eq $categories[ix].categId}selected="selected"{/if}>
{tr}{$categories[ix].categpath}{/tr}
{capture}{tr}{$categories[ix].categpath}{/tr}{/capture}{$smarty.capture.default|escape}
</option>
{/section}
</select>
......
......@@ -71,7 +71,7 @@
{if $tiki_p_read_article eq 'y'}
<a class="artname" href="{$listpages[changes].articleId|sefurl:article}" title="{$listpages[changes].title|escape}">
{/if}
{$listpages[changes].title|truncate:$prefs.art_list_title_len:"...":true}
{$listpages[changes].title|truncate:$prefs.art_list_title_len:"...":true|escape}
{if $listpages[changes].type eq 'Review'}(r){/if}
{if $tiki_p_read_article eq 'y'}
</a>
......@@ -79,10 +79,10 @@
</td>
{/if}
{if $prefs.art_list_type eq 'y'}
<td class="{cycle advance=false}">{tr}{$listpages[changes].type}{/tr}</td>
<td class="{cycle advance=false}">{tr}{$listpages[changes].type|escape}{/tr}</td>
{/if}
{if $prefs.art_list_topic eq 'y'}
<td class="{cycle advance=false}">{$listpages[changes].topicName}</td>
<td class="{cycle advance=false}">{$listpages[changes].topicName|escape}</td>
{/if}
{if $prefs.art_list_date eq 'y'}
<td class="{cycle advance=false}">{$listpages[changes].publishDate|tiki_short_datetime}</td>
......@@ -97,7 +97,7 @@
<td class="{cycle advance=false}">{tr}{$listpages[changes].lang}{/tr}</td>
{/if}
{if $prefs.art_list_author eq 'y'}
<td class="{cycle advance=false}">{$listpages[changes].authorName}</td>
<td class="{cycle advance=false}">{$listpages[changes].authorName|escape}</td>
{/if}
{if $prefs.art_list_rating eq 'y'}
<td style="text-align:right;" class="{cycle advance=false}">{$listpages[changes].rating}</td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment