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-09-16 11:27:33 +0300
committerMichal Čihař <michal@cihar.com>2016-09-16 11:29:21 +0300
commit3546bed47e51ad8bec18b6680aeaf6c031808d5e (patch)
tree7c42cd49875a42088aa511e9eeb797308fa26cb0 /tbl_addfield.php
parent6e3d38a1d31c780722b0ed6f3dbf2a5c238c6dad (diff)
Avoid using mb_strlen for checking whether string is empty
Using strlen produces same results here, just way faster. Fixes #12397 Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'tbl_addfield.php')
-rw-r--r--tbl_addfield.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tbl_addfield.php b/tbl_addfield.php
index 2996d147ab..1a01610352 100644
--- a/tbl_addfield.php
+++ b/tbl_addfield.php
@@ -74,7 +74,7 @@ if (isset($_REQUEST['do_save_data'])) {
) {
foreach ($_REQUEST['field_mimetype'] as $fieldindex => $mimetype) {
if (isset($_REQUEST['field_name'][$fieldindex])
- && mb_strlen($_REQUEST['field_name'][$fieldindex])
+ && strlen($_REQUEST['field_name'][$fieldindex]) > 0
) {
PMA_setMIME(
$db, $table,