(Excessive post content hidden)";
- if ($post['editdate']) {
+ if (filter_int($post['editdate'])) {
$post['edited'] = " (last edited by {$post['edited']} at ".date($dateformat,$post['editdate']+$tzoff).")";
}
@@ -80,12 +80,12 @@
}
if($loguser['viewsig']!=2){
- if($headid=$post['headid']) {
+ if($headid=filter_int($post['headid'])) {
// just in case
if($postl[$headid] === NULL) $postl[$headid]=$sql->resultq("SELECT text FROM postlayouts WHERE id=$headid");
$post['headtext']=$postl[$headid];
}
- if($signid=$post['signid']) {
+ if($signid=filter_int($post['signid'])) {
// just in case
if($postl[$signid] === NULL) $postl[$signid]=$sql->resultq("SELECT text FROM postlayouts WHERE id=$signid");
$post['signtext']=$postl[$signid];
diff --git a/tlayouts/regular.php b/tlayouts/regular.php
index ef6819d..4bf178f 100644
--- a/tlayouts/regular.php
+++ b/tlayouts/regular.php
@@ -54,7 +54,7 @@
}
- $reinf=syndrome($post['act']);
+ $reinf=syndrome(filter_int($post['act']));
if ($post['lastposttime']) {
$sincelastpost = 'Since last post: '.timeunits(ctime()-$post['lastposttime']);