Added some security in add_comment.php
This commit is contained in:
parent
6d6334aa6d
commit
62cc6f6f09
@ -78,6 +78,7 @@ if (!$poll) {
|
||||
$comments = $pollService->allCommentsByPollId($poll_id);
|
||||
}
|
||||
|
||||
error_reporting(E_ALL & ~E_NOTICE);
|
||||
$smarty->error_reporting = E_ALL & ~E_NOTICE;
|
||||
$smarty->assign('comments', $comments);
|
||||
$comments_html = $smarty->fetch('part/comments_list.tpl');
|
||||
|
9
tpl/mail/remember_edit_link.tpl
Normal file
9
tpl/mail/remember_edit_link.tpl
Normal file
@ -0,0 +1,9 @@
|
||||
<h1>{__('FindPolls', 'Here are your polls')}</h1>
|
||||
<ul>
|
||||
{foreach $polls as $poll}
|
||||
<li>
|
||||
<a href="{poll_url id=$poll->admin_id admin=true}">{$poll->title|html}</a>
|
||||
({__('Generic', 'Creation date:')} {$poll->creation_date|date_format:$date_format['txt_full']})
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
Loading…
Reference in New Issue
Block a user