Fix schema export with too many tables

We need to submit tables in POST parameters as there can be too many of
them to be included in GET.

Fixes #12234

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2016-05-11 11:31:55 +02:00
parent d88ebebc89
commit b3132bf2c8
3 changed files with 9 additions and 2 deletions

View File

@ -3,6 +3,7 @@ phpMyAdmin - ChangeLog
4.6.2 (not yet released)
- issue #12225 Use https for documentation links
- issue #12234 Fix schema export with too many tables
4.6.1 (2016-05-02)
- issue #12120 PMA_Util not found in insert_edit.lib.php

View File

@ -1039,10 +1039,16 @@ function Export_pages()
PMA_ajaxRemoveMessage($msgbox);
var $form = $(data.message);
$form.attr('action', $form.attr('action') + '?' + (Get_url_pos(true).substring(1)));
if (!pmd_tables_enabled) {
$form.append('<input type="hidden" name="offline_export" value="true" />');
}
$.each(Get_url_pos(true).substring(1).split('&'), function() {
var pair = this.split('=');
var input = $('<input type="hidden" />');
input.attr('name', pair[0]);
input.attr('value', pair[1]);
$form.append(input);
});
var $formatDropDown = $form.find('#plugins');
$formatDropDown.change(function() {
var format = $formatDropDown.val();

View File

@ -8,4 +8,4 @@
<input type="hidden" name="page_number" value="<?= htmlspecialchars($page); ?>" />
<?= PMA_pluginGetOptions('Schema', $export_list); ?>
</fieldset>
</form>
</form>