Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Čihař <michal@cihar.com>2016-01-19 12:48:32 +0300
committerMichal Čihař <michal@cihar.com>2016-01-19 12:48:32 +0300
commit0490d204087560298e2df7fd2cc5831cf538c936 (patch)
tree1f91db7296f08f21f522084fcbc6ba125211562e /export.php
parentdcdeee28eb6a251ad2fcb70d81fe55f1569b4580 (diff)
Check for parameter before using it
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'export.php')
-rw-r--r--export.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/export.php b/export.php
index b7942a34ac..b781eaa18d 100644
--- a/export.php
+++ b/export.php
@@ -163,11 +163,12 @@ if (!defined('TESTSUITE')) {
}
$table = $GLOBALS['table'];
- // sanitize this parameter which will be used below in a file inclusion
- $what = PMA_securePath($_POST['what']);
PMA_Util::checkParameters(array('what', 'export_type'));
+ // sanitize this parameter which will be used below in a file inclusion
+ $what = PMA_securePath($_POST['what']);
+
// export class instance, not array of properties, as before
/* @var $export_plugin ExportPlugin */
$export_plugin = PMA_getPlugin(