From 85ff1b6c4b23dfdb9be7ca95865d4b1bac97aa82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 28 Nov 2017 09:07:04 +0100 Subject: [PATCH] Gracefully fail on missing parameter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #13841 Signed-off-by: Michal Čihař --- js/get_scripts.js.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/get_scripts.js.php b/js/get_scripts.js.php index 1edbc143f7..c1e7c52093 100644 --- a/js/get_scripts.js.php +++ b/js/get_scripts.js.php @@ -7,6 +7,10 @@ * @package PhpMyAdmin */ +if (! isset($_GET['scripts'])) { + die('Missing parameter'); +} + if (!defined('TESTSUITE')) { chdir('..');