bug #2018595 [import] Potential data loss on import resubmit

This commit is contained in:
Marc Delisle
2008-07-17 14:02:26 +00:00
parent d7e910e296
commit 784ee3063c
2 changed files with 14 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
- bug #1982489 [relation] Relationship view should check for changes - bug #1982489 [relation] Relationship view should check for changes
- bug [history] Do not save too big queries in history - bug [history] Do not save too big queries in history
- [security] Do not show version info on login screen - [security] Do not show version info on login screen
- bug #2018595 [import] Potential data loss on import resubmit
2.11.7.1 (2008-07-15) 2.11.7.1 (2008-07-15)
- bug [security] XSRF/CSRF by manipulating the db, - bug [security] XSRF/CSRF by manipulating the db,

View File

@@ -154,10 +154,23 @@ echo "\n";
<label for="checkbox_allow_interrupt"><?php echo $strAllowInterrupt; ?></label><br /> <label for="checkbox_allow_interrupt"><?php echo $strAllowInterrupt; ?></label><br />
</div> </div>
<?php
if (! (isset($timeout_passed) && $timeout_passed)) {
?>
<div class="formelementrow"> <div class="formelementrow">
<label for="text_skip_queries"><?php echo $strSkipQueries; ?></label> <label for="text_skip_queries"><?php echo $strSkipQueries; ?></label>
<input type="text" name="skip_queries" value="<?php echo PMA_pluginGetDefault('Import', 'skip_queries');?>" id="text_skip_queries" /> <input type="text" name="skip_queries" value="<?php echo PMA_pluginGetDefault('Import', 'skip_queries');?>" id="text_skip_queries" />
</div> </div>
<?php
} else {
// If timeout has passed,
// do not show the Skip dialog to avoid the risk of someone
// entering a value here that would interfere with "skip"
?>
<input type="hidden" name="skip_queries" value="<?php echo PMA_pluginGetDefault('Import', 'skip_queries');?>" id="text_skip_queries" />
<?php
}
?>
</fieldset> </fieldset>
<fieldset class="options"> <fieldset class="options">