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:
authorHugues Peccatte <hugues.peccatte@gmail.com>2014-08-15 20:19:20 +0400
committerHugues Peccatte <hugues.peccatte@gmail.com>2014-09-06 12:44:03 +0400
commit9b77d746aba7ded13aa68f98ac4b5840f2d438f8 (patch)
treef16106e0d721859423406121628a12f03dc704e6 /import_status.php
parent4960f208e20ad7fd8b77cef9dcc82772c29def92 (diff)
Mass modifications to use PMA_String.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
Diffstat (limited to 'import_status.php')
-rw-r--r--import_status.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/import_status.php b/import_status.php
index 45e11fcd31..6b6e04b369 100644
--- a/import_status.php
+++ b/import_status.php
@@ -32,9 +32,12 @@ if (version_compare(PHP_VERSION, '5.4.0', '>=')
define('UPLOAD_PREFIX', ini_get('session.upload_progress.prefix'));
session_start();
+ /** @var PMA_String $pmaString /
+ $pmaString = $GLOBALS['PMA_String'];
foreach ($_SESSION as $key => $value) {
// only copy session-prefixed data
- if (substr($key, 0, strlen(UPLOAD_PREFIX)) == UPLOAD_PREFIX) {
+ if ($pmaString->substr($key, 0, $pmaString->strlen(UPLOAD_PREFIX))
+ == UPLOAD_PREFIX) {
$sessionupload[$key] = $value;
}
}
@@ -61,9 +64,12 @@ if (defined('SESSIONUPLOAD')) {
$_SESSION[$key] = $value;
}
+ /** @var PMA_String $pmaString /
+ $pmaString = $GLOBALS['PMA_String'];
// remove session upload data that are not set anymore
foreach ($_SESSION as $key => $value) {
- if (substr($key, 0, strlen(UPLOAD_PREFIX)) == UPLOAD_PREFIX
+ if ($pmaString->substr($key, 0, $pmaString->strlen(UPLOAD_PREFIX))
+ == UPLOAD_PREFIX
&& ! isset($sessionupload[$key])
) {
unset($_SESSION[$key]);