diff options
author | Michal Čihař <michal@cihar.com> | 2016-09-16 11:30:28 +0300 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2016-09-16 11:30:28 +0300 |
commit | 19c24a8c6cd2b454e5185dda373c52fab53a5c8f (patch) | |
tree | 04160d86eacb100ec79dc03ddd1885bc7a9179e8 /import.php | |
parent | 809a75eb92adb62a4f90448bb750d703a14c901a (diff) | |
parent | a716fa6e7ed36624fbfce0e86cf8aa7f6d58d23b (diff) |
Merge branch 'master' into master-security
Diffstat (limited to 'import.php')
-rw-r--r-- | import.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/import.php b/import.php index afb56ba1b0..3d4188d370 100644 --- a/import.php +++ b/import.php @@ -268,17 +268,17 @@ if ($import_type == 'table') { $goto = 'server_import.php'; } else { if (empty($goto) || !preg_match('@^(server|db|tbl)(_[a-z]*)*\.php$@i', $goto)) { - if (mb_strlen($table) && mb_strlen($db)) { + if (strlen($table) > 0 && strlen($db) > 0) { $goto = 'tbl_structure.php'; - } elseif (mb_strlen($db)) { + } elseif (strlen($db) > 0) { $goto = 'db_structure.php'; } else { $goto = 'server_sql.php'; } } - if (mb_strlen($table) && mb_strlen($db)) { + if (strlen($table) > 0 && strlen($db) > 0) { $common = URL::getCommon(array('db' => $db, 'table' => $table)); - } elseif (mb_strlen($db)) { + } elseif (strlen($db) > 0) { $common = URL::getCommon(array('db' => $db)); } else { $common = URL::getCommon(); @@ -296,7 +296,7 @@ if (basename($_SERVER['SCRIPT_NAME']) === 'import.php') { } -if (mb_strlen($db)) { +if (strlen($db) > 0) { $GLOBALS['dbi']->selectDb($db); } |