From e677cf3c15085001034ec3e9b35fdeb218bc25e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Fri, 19 Jul 2019 20:21:23 -0300 Subject: [PATCH] Remove direct access to libraries/entry_points/table/structure.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MaurĂ­cio Meneghini Fauth --- libraries/entry_points/table/structure.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libraries/entry_points/table/structure.php b/libraries/entry_points/table/structure.php index 8df44880b2..f1cb4f9f1a 100644 --- a/libraries/entry_points/table/structure.php +++ b/libraries/entry_points/table/structure.php @@ -12,15 +12,13 @@ use PhpMyAdmin\Controllers\Table\StructureController; use PhpMyAdmin\DatabaseInterface; use Symfony\Component\DependencyInjection\Definition; -if (! defined('ROOT_PATH')) { - define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR); +if (! defined('PHPMYADMIN')) { + exit; } global $containerBuilder, $db_is_system_schema, $tbl_is_view, $tbl_storage_engine; global $table_info_num_rows, $tbl_collation, $showtable; -require_once ROOT_PATH . 'libraries/common.inc.php'; - /** @var DatabaseInterface $dbi */ $dbi = $containerBuilder->get('dbi');