From 9ee62d075a86ea61d229dc8f0a49043b51d53785 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sat, 19 Jul 2003 11:05:17 +0000 Subject: [PATCH] path disclosure --- db_details_db_info.php3 | 10 ++++++++++ db_details_importdocsql.php3 | 3 +++ 2 files changed, 13 insertions(+) diff --git a/db_details_db_info.php3 b/db_details_db_info.php3 index bc0e76bdc86c..4c4a27ef9afd 100644 --- a/db_details_db_info.php3 +++ b/db_details_db_info.php3 @@ -2,6 +2,16 @@ /* $Id$ */ // vim: expandtab sw=4 ts=4 sts=4: + +// Check parameters + +if (!defined('PMA_COMMON_LIB_INCLUDED')) { + include('./libraries/common.lib.php3'); +} + +PMA_checkParameters(array('db')); + + /** * Gets the list of the table in the current db and informations about these * tables if possible diff --git a/db_details_importdocsql.php3 b/db_details_importdocsql.php3 index 85f22c9d8188..3a9358208515 100644 --- a/db_details_importdocsql.php3 +++ b/db_details_importdocsql.php3 @@ -20,6 +20,9 @@ require('./header.inc.php3'); //all hardcoded strings converted by Robbat2, 15 January 2003 9.34PM require('./libraries/common.lib.php3'); +// Check parameters +PMA_checkParameters(array('db')); + /** * Imports docSQL files *