diff options
author | Michal Čihař <michal@cihar.com> | 2016-09-02 14:47:31 +0300 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2016-09-02 14:47:31 +0300 |
commit | ce278cd3eb1ea042bb90dbd49c0c8d5927f1c193 (patch) | |
tree | a534de21a1bd4d49dbeeaed4ff7378f13abcdac2 /import.php | |
parent | c3328c743abd7b1ea8cbfc3b7c0ebd502a4e4100 (diff) | |
parent | dcc9f8585c49ce2258d40aea511b524488bbce05 (diff) |
Merge branch 'QA_4_6-security' into master-security
Diffstat (limited to 'import.php')
-rw-r--r-- | import.php | 4 |
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; |