summaryrefslogtreecommitdiff
path: root/lookup_post_inc.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2005-12-26 12:23:44 +0000
committerMax Kremmel <xing@synapse.plus.com>2005-12-26 12:23:44 +0000
commit941323db55b26d940db4dc2ae45125ec8baf06ed (patch)
tree6e20f11a93436690411458d4ff25a3153b563229 /lookup_post_inc.php
parent1daabcc9ea62cf8b001064014a3303bdfe0cb8eb (diff)
downloadblogs-941323db55b26d940db4dc2ae45125ec8baf06ed.tar.gz
blogs-941323db55b26d940db4dc2ae45125ec8baf06ed.tar.bz2
blogs-941323db55b26d940db4dc2ae45125ec8baf06ed.zip
merge recent changes into HEAD
Diffstat (limited to 'lookup_post_inc.php')
-rw-r--r--lookup_post_inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lookup_post_inc.php b/lookup_post_inc.php
index 9aed005..d1902cf 100644
--- a/lookup_post_inc.php
+++ b/lookup_post_inc.php
@@ -7,8 +7,8 @@
global $gContent, $gBitSmarty;
if( empty( $gContent ) || !is_object( $gContent ) || !$gContent->isValid() ) {
- $postId = !empty( $_REQUEST['post_id'] ) ? $_REQUEST['post_id'] : NULL;
- $conId = !empty( $_REQUEST['content_id'] ) ? $_REQUEST['content_id'] : NULL;
+ $postId = @BitBase::verifyId( $_REQUEST['post_id'] ) ? $_REQUEST['post_id'] : NULL;
+ $conId = @BitBase::verifyId( $_REQUEST['content_id'] ) ? $_REQUEST['content_id'] : NULL;
$gContent = new BitBlogPost( $postId, $conId );
$gContent->load();
$comments_return_url = $_SERVER['PHP_SELF']."?post_id=$postId";