Disable setup if configuration already exists

The setup allows to figure out quite a lot about system and network, so
it's safer to block access to it once phpMyAdmin has been configured.

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2016-12-21 11:36:32 +01:00
parent 801485a7f4
commit 88cc11ab13

View File

@ -12,6 +12,10 @@
*/
require './lib/common.inc.php';
if (file_exists(CONFIG_FILE)) {
PMA_fatalError(__('Configuration already exists, setup is disabled!'));
}
$page = PMA_isValid($_GET['page'], 'scalar') ? $_GET['page'] : null;
$page = preg_replace('/[^a-z]/', '', $page);
if ($page === '') {