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 /import_status.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 'import_status.php')
-rw-r--r--import_status.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/import_status.php b/import_status.php
index 1a850581b0..64b39915fc 100644
--- a/import_status.php
+++ b/import_status.php
@@ -32,7 +32,7 @@ if (ini_get('session.upload_progress.enabled')) {
session_start();
foreach ($_SESSION as $key => $value) {
// only copy session-prefixed data
- if (mb_substr($key, 0, mb_strlen(UPLOAD_PREFIX))
+ if (substr($key, 0, strlen(UPLOAD_PREFIX))
== UPLOAD_PREFIX) {
$sessionupload[$key] = $value;
}
@@ -67,7 +67,7 @@ if (defined('SESSIONUPLOAD')) {
// remove session upload data that are not set anymore
foreach ($_SESSION as $key => $value) {
- if (mb_substr($key, 0, mb_strlen(UPLOAD_PREFIX))
+ if (substr($key, 0, strlen(UPLOAD_PREFIX))
== UPLOAD_PREFIX
&& ! isset($sessionupload[$key])
) {