diff options
| -rw-r--r-- | templates/ajax.tpl | 4 | ||||
| -rw-r--r-- | templates/board_assign.tpl | 6 | ||||
| -rw-r--r-- | templates/board_cat.tpl | 2 | ||||
| -rw-r--r-- | templates/comment_post.tpl | 2 | ||||
| -rw-r--r-- | templates/header_inc.tpl | 4 | ||||
| -rw-r--r-- | templates/list_topics.tpl | 4 |
6 files changed, 11 insertions, 11 deletions
diff --git a/templates/ajax.tpl b/templates/ajax.tpl index 6989e77..599467a 100644 --- a/templates/ajax.tpl +++ b/templates/ajax.tpl @@ -1,6 +1,6 @@ {strip} <option value="">Select a Board</option> {foreach from=$boardList item=board} - <option value="{$board.content_id}"> {$board.title} [{$board.post_count}]</option> + <option value="{$board.content_id}"> {$board.title|escape} [{$board.post_count}]</option> {/foreach} -{/strip}
\ No newline at end of file +{/strip} diff --git a/templates/board_assign.tpl b/templates/board_assign.tpl index 9b8470e..3721879 100644 --- a/templates/board_assign.tpl +++ b/templates/board_assign.tpl @@ -28,7 +28,7 @@ {forminput} <select name="to_board_id" id="to_board_id"> {foreach item=board from=$data.map name='board_loop'} - <option value="{$board.board_id}">{$board.title}</option> + <option value="{$board.board_id}">{$board.title|escape}</option> {/foreach} </select> {formhelp note="All comments posted to the selected content will show up on this board."} @@ -49,7 +49,7 @@ {if ! $board.integrity} <img src="{$smarty.const.LIBERTY_PKG_URL}/icons/warning.png" alt="Integrity Check Failed" title="Integrity Check Failed" class="icon" /> {/if} - {$board.title} + {$board.title|escape} {/capture} {form legend="<a href=\"`$board.url`\">`$board.title`</a>" id="board`$smarty.foreach.board_loop.iteration`"} @@ -74,7 +74,7 @@ {foreach item=mapping from=$board.map} <tr class="{cycle values="odd,even"}"> <td>{$mapping.t_content_description}</td> - <td>{$mapping.t_title}</td> + <td>{$mapping.t_title|escape}</td> <td style="text-align:right">{$mapping.thread_count}</td> <td class="actionicon"> <input type="checkbox" name="remove[{$board.board_id}][{$mapping.t_content_id}]" value="1" /> diff --git a/templates/board_cat.tpl b/templates/board_cat.tpl index 0b13e68..8992657 100644 --- a/templates/board_cat.tpl +++ b/templates/board_cat.tpl @@ -1,7 +1,7 @@ {strip} <div class="indent"> {if $child.data.title} - <h{$heading|default:2}>{$child.data.title}</h{$heading|default:2}> + <h{$heading|default:2}>{$child.data.title|escape}</h{$heading|default:2}> {/if} {if count($child.members) > 0} diff --git a/templates/comment_post.tpl b/templates/comment_post.tpl index 20a4bcc..174449c 100644 --- a/templates/comment_post.tpl +++ b/templates/comment_post.tpl @@ -49,7 +49,7 @@ <div class="row"> {formlabel label="Comment" for="commentpost"} {forminput} - <textarea {spellchecker} id="commentpost" name="comment_data" rows="6" cols="50">{$postComment.data}</textarea> + <textarea {spellchecker} id="commentpost" name="comment_data" rows="6" cols="50">{$postComment.data|escape}</textarea> {formhelp note="Use [http://www.foo.com] or [http://www.foo.com|description] for links.<br />HTML tags are not allowed inside comments."} {/forminput} </div> diff --git a/templates/header_inc.tpl b/templates/header_inc.tpl index af0b4c8..4e11ad1 100644 --- a/templates/header_inc.tpl +++ b/templates/header_inc.tpl @@ -33,7 +33,7 @@ /* ]]> */</script> {if $gBitSystem->isPackageActive( 'rss' ) && !empty($board)} - <link rel="alternate" type="application/rss+xml" title="Board {$board->mInfo.title} RSS" href="{$smarty.const.BITBOARDS_PKG_URL}bitboards_rss.php?version=rss20&b={$smarty.request.b}" /> - <link rel="alternate" type="application/rss+xml" title="Board {$board->mInfo.title} ATOM" href="{$smarty.const.BITBOARDS_PKG_URL}bitboards_rss.php?version=atom&b={$smarty.request.b}" /> + <link rel="alternate" type="application/rss+xml" title="Board {$board->mInfo.title|escape} RSS" href="{$smarty.const.BITBOARDS_PKG_URL}bitboards_rss.php?version=rss20&b={$smarty.request.b}" /> + <link rel="alternate" type="application/rss+xml" title="Board {$board->mInfo.title|escape} ATOM" href="{$smarty.const.BITBOARDS_PKG_URL}bitboards_rss.php?version=atom&b={$smarty.request.b}" /> {/if} {/if} diff --git a/templates/list_topics.tpl b/templates/list_topics.tpl index 8382d92..d97249b 100644 --- a/templates/list_topics.tpl +++ b/templates/list_topics.tpl @@ -1,4 +1,4 @@ -{* $Header: /cvsroot/bitweaver/_bit_boards/templates/list_topics.tpl,v 1.3 2006/11/22 12:33:57 squareing Exp $ *} +{* $Header: /cvsroot/bitweaver/_bit_boards/templates/list_topics.tpl,v 1.4 2007/01/05 08:31:21 squareing Exp $ *} {strip} <div class="listing bitboard"> <div class="floaticon"> @@ -86,7 +86,7 @@ </td> {if $gBitUser->hasPermission('p_bitboards_edit') || $gBitUser->hasPermission('p_bitboards_post_edit')} - <td style="text-align:center;">{if $thread.unreg > 0}<a class="highlight" href="{$thread.url}" title="{$thread.title}">{$thread.unreg}</a>{/if}</td> + <td style="text-align:center;">{if $thread.unreg > 0}<a class="highlight" href="{$thread.url}" title="{$thread.title|escape}">{$thread.unreg}</a>{/if}</td> {/if} {if $gBitUser->hasPermission('p_bitboards_edit') || $gBitUser->hasPermission('p_bitboards_post_edit')} |
