Commit 4869832e authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix new templates to cope with auto_escape


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 2c949240
{include file="header.tpl"}
<div id="resumewrap">
{$interestsform}
{$interestsform|safe}
</div>
{include file="footer.tpl"}
......@@ -6,7 +6,7 @@
<td>
{if $item->message}
<a href="" onclick="showHideMessage({$item->id}); return false;">{$item->subject|escape}</a>
<div id="message-{$item->id}" class="hidden">{$item->message|clean_html}
<div id="message-{$item->id}" class="hidden">{$item->message|safe|clean_html}
{if $item->url}<br><a href="{$item->url|escape}" class="s">{if $item->urltext}{$item->urltext|escape} &raquo;{else}{str tag="more..."}{/if}</a>{/if}
</div>
{elseif $item->url}
......
......@@ -23,11 +23,11 @@
<tr class="caption">
<td>
{assign var=s value="updateyourprofile"|str:mahara:$url.profile}
{if $USER->is_logged_in()}{$s}{else}{strip_tags($s)}{/if}
{if $USER->is_logged_in()}{$s|safe}{else}{$s|safe|strip_tags}{/if}
</td>
<td>
{assign var=s value="uploadyourfiles"|str:mahara:$url.files}
{if $USER->is_logged_in()}{$s}{else}{$s|strip_tags}{/if}
{if $USER->is_logged_in()}{$s|safe}{else}{$s|safe|strip_tags}{/if}
</td>
</tr>
<tr>
......@@ -45,11 +45,11 @@
<tr class="caption">
<td>
{assign var=s value="createyourresume"|str:mahara:$url.resume}
{if $USER->is_logged_in()}{$s}{else}{$s|strip_tags}{/if}
{if $USER->is_logged_in()}{$s|safe}{else}{$s|safe|strip_tags}{/if}
</td>
<td>
{assign var=s value="publishablog"|str:mahara:$url.blog}
{if $USER->is_logged_in()}{$s}{else}{$s|strip_tags}{/if}
{if $USER->is_logged_in()}{$s|safe}{else}{$s|safe|strip_tags}{/if}
</td>
</tr>
</table>
......@@ -66,7 +66,7 @@
</div>
<p class="desc">
{assign var=s value="organisedescription"|str:mahara:$url.views}
{if $USER->is_logged_in()}{$s}{else}{$s|strip_tags}{/if}
{if $USER->is_logged_in()}{$s|safe}{else}{$s|safe|strip_tags}{/if}
</p>
</div>
</td>
......@@ -90,11 +90,11 @@
<tr>
<td>
{assign var=s value="findfriendslinked"|str:mahara:$url.friends}
{if $USER->is_logged_in()}{$s}{else}{$s|strip_tags}{/if}
{if $USER->is_logged_in()}{$s|safe}{else}{$s|safe|strip_tags}{/if}
</td>
<td>
{assign var=s value="joingroups"|str:mahara:$url.groups}
{if $USER->is_logged_in()}{$s}{else}{$s|strip_tags}{/if}
{if $USER->is_logged_in()}{$s|safe}{else}{$s|safe|strip_tags}{/if}
</td>
</tr>
</table>
......
{auto_escape off}
<div id="view" class="cb">
<div id="bottom-pane">
<div id="column-container">
......@@ -5,4 +6,4 @@
</div>
</div>
</div>
{/auto_escape}
\ No newline at end of file
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