summaryrefslogtreecommitdiff
path: root/inc/template.php
diff options
context:
space:
mode:
authorAdrian Lang <lang@cosmocode.de>2010-02-09 10:51:54 +0100
committerAdrian Lang <lang@cosmocode.de>2010-02-09 10:56:46 +0100
commit66d2bed97d77042bdcd15cbeb71f058918c8f614 (patch)
treef0e2636c8f9889be86f101b85fb84d0b32af620d /inc/template.php
parentc4b04b7f874a6c3f7ab5296aed1c039757183eb7 (diff)
downloadrpg-66d2bed97d77042bdcd15cbeb71f058918c8f614.tar.gz
rpg-66d2bed97d77042bdcd15cbeb71f058918c8f614.tar.bz2
Add security token to subscription manage page
Diffstat (limited to 'inc/template.php')
-rw-r--r--inc/template.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/inc/template.php b/inc/template.php
index bab68e549..df0c94437 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -1375,9 +1375,14 @@ function tpl_subscribe() {
if(!$sstl) $sstl = hsc($sub['style']);
echo ' ('.$sstl.') ';
- echo '<a href="'.wl($ID,array('do'=>'subscribe','sub_target'=>$sub['target'],'sub_style'=>$sub['style'],'sub_action'=>'unsubscribe')).'" class="unsubscribe">'.$lang['subscr_m_unsubscribe'].'</a>';
-
- echo '</div></li>';
+ echo '<a href="' . wl($ID,
+ array('do'=>'subscribe',
+ 'sub_target'=>$sub['target'],
+ 'sub_style'=>$sub['style'],
+ 'sub_action'=>'unsubscribe',
+ 'sectok' => getSecurityToken())) .
+ '" class="unsubscribe">'.$lang['subscr_m_unsubscribe'] .
+ '</a></div></li>';
}
echo '</ul>';
}