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-02 14:47:31 +0300
committerMichal Čihař <michal@cihar.com>2016-09-02 14:47:31 +0300
commitce278cd3eb1ea042bb90dbd49c0c8d5927f1c193 (patch)
treea534de21a1bd4d49dbeeaed4ff7378f13abcdac2 /import.php
parentc3328c743abd7b1ea8cbfc3b7c0ebd502a4e4100 (diff)
parentdcc9f8585c49ce2258d40aea511b524488bbce05 (diff)
Merge branch 'QA_4_6-security' into master-security
Diffstat (limited to 'import.php')
-rw-r--r--import.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/import.php b/import.php
index 83bfa76fe0..c2bce77a12 100644
--- a/import.php
+++ b/import.php
@@ -509,8 +509,8 @@ if (Encoding::isSupported() && isset($charset_of_file)) {
// Something to skip? (because timeout has passed)
if (! $error && isset($_POST['skip'])) {
- $original_skip = $skip = $_POST['skip'];
- while ($skip > 0) {
+ $original_skip = $skip = intval($_POST['skip']);
+ while ($skip > 0 && ! $finished) {
PMA_importGetNextChunk($skip < $read_limit ? $skip : $read_limit);
// Disable read progressivity, otherwise we eat all memory!
$read_multiply = 1;