diff options
| author | laetzer <laetzer@users.sourceforge.net> | 2010-02-23 00:25:14 +0000 |
|---|---|---|
| committer | laetzer <laetzer@users.sourceforge.net> | 2010-02-23 00:25:14 +0000 |
| commit | c4fdbb7f7ece262bcf342a6b6180fdf319b7360f (patch) | |
| tree | 33384d105e5da707b8f7b1a6c2afb06712356039 /templates | |
| parent | e8dff6368b9b87633b28c3c864b5704ae58a72d3 (diff) | |
| download | liberty-c4fdbb7f7ece262bcf342a6b6180fdf319b7360f.tar.gz liberty-c4fdbb7f7ece262bcf342a6b6180fdf319b7360f.tar.bz2 liberty-c4fdbb7f7ece262bcf342a6b6180fdf319b7360f.zip | |
strip_tags from filename (description), so that <p> etc. don't end up inside <a>
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/mime/default/attachment.tpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/mime/default/attachment.tpl b/templates/mime/default/attachment.tpl index 0d86d33..fe33bfb 100644 --- a/templates/mime/default/attachment.tpl +++ b/templates/mime/default/attachment.tpl @@ -1,7 +1,7 @@ {strip} {if $wrapper.output == 'desc' || $wrapper.output == 'description'} {if $attachment.display_url}<a {$wrapper.href_class} href="{$wrapper.display_url|default:$attachment.display_url}">{/if} - {$wrapper.description_parsed|default:$attachment.filename} + {$wrapper.description_parsed|default:$attachment.filename|strip_tags} {if $attachment.display_url}</a>{/if} {else} <{$wrapper.wrapper|default:'span'} class="{$wrapper.class|default:'att-plugin'}"{if $wrapper.style} style="{$wrapper.style|default:'display:inline-block'}{/if}"> |
