summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspiderr <spiderr@bitweaver.org>2025-05-27 15:22:01 -0400
committerspiderr <spiderr@bitweaver.org>2025-05-27 15:22:01 -0400
commitdde33e01842872ac75d6bc2c41c8139d5878b79b (patch)
treec832c03b1bf9d8aa27405bac616b14376178388a
parent8db00a73beb602d59bea56c72c536b8f80ee2680 (diff)
downloadwiki-dde33e01842872ac75d6bc2c41c8139d5878b79b.tar.gz
wiki-dde33e01842872ac75d6bc2c41c8139d5878b79b.tar.bz2
wiki-dde33e01842872ac75d6bc2c41c8139d5878b79b.zip
use verifyIdParameter to check empty hash values
-rw-r--r--edit_book.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/edit_book.php b/edit_book.php
index 9b572a0..ed5f268 100644
--- a/edit_book.php
+++ b/edit_book.php
@@ -33,7 +33,7 @@ global $gStructure;
**/
// get a book instance
global $gContent;
-if( @BitBase::verifyId( $_REQUEST["structure_id"] ) || @BitBase::verifyId( $_REQUEST["content_id"] ) ) {
+if( BitBase::verifyIdParameter( $_REQUEST, 'structure_id' ) || BitBase::verifyIdParameter( $_REQUEST, 'content_id' ) ) {
include_once( LIBERTY_PKG_INCLUDE_PATH.'lookup_content_inc.php' );
if( empty( $gContent ) ){
$gBitSystem->fatalError( 'Error: Invalid structure id, the book you requested could not be found.' );