Commit 96b5b6e2 authored by Nigel McNie's avatar Nigel McNie
Browse files

Reverse order of str_shorten_text and escape modifiers. HTML escaping should always be last.

parent eaacfe41
......@@ -25,7 +25,7 @@
{/if}
</td>
<td class="filename">
{assign var=displaytitle value=$file->title|escape|str_shorten_text:34}
{assign var=displaytitle value=$file->title|str_shorten_text:34|escape}
{if $file->artefacttype == 'folder'}
<a href="{$querybase}folder={$file->id}" class="changefolder" title="{str tag=gotofolder section=artefact.file arg1=$displaytitle}">{$displaytitle}</a>
{else}
......
{foreach from=$path item=f name=path}
{if !$smarty.foreach.path.first}/ {/if}<a href="{$querybase}folder={$f->id}" class="changefolder">{$f->title|escape|str_shorten_text:34}</a>
{if !$smarty.foreach.path.first}/ {/if}<a href="{$querybase}folder={$f->id}" class="changefolder">{$f->title|str_shorten_text:34|escape}</a>
{/foreach}
......@@ -10,7 +10,7 @@
</thead>
<tbody>
{foreach from=$selectedlist item=file}
{assign var=displaytitle value=$file->title|escape|str_shorten_text:34}
{assign var=displaytitle value=$file->title|str_shorten_text:34|escape}
<tr class="r{cycle values=0,1}{if !empty($highlight) && $highlight == $file->id} highlight-file{/if}">
<td>
<img src="{if $file->artefacttype == 'image'}{$WWWROOT}artefact/file/download.php?file={$file->id}&size=20x20{else}{$THEMEURL}images/{$file->artefacttype}.gif{/if}">
......
Supports Markdown
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