Fix for bug #3353649 - "Create an index on X columns" form not validated
This commit is contained in:
@@ -6,6 +6,7 @@ phpMyAdmin - ChangeLog
|
||||
- bug #3323101 [parser] Invalid escape sequence in SQL parser
|
||||
- bug #3348995 [config] $cfg['Export']['asfile'] set to false does not select asText option
|
||||
- bug #3340151 [export] Working SQL query exports error page
|
||||
- bug #3353649 [interface] "Create an index on X columns" form not validated
|
||||
|
||||
3.4.3.1 (2011-07-02)
|
||||
- [security] Fixed possible session manipulation in swekey authentication, see PMASA-2011-5
|
||||
|
@@ -680,7 +680,7 @@ if (! $tbl_is_view && ! $db_is_information_schema && 'ARCHIVE' != $tbl_type) {
|
||||
?>
|
||||
<br />
|
||||
<form action="./tbl_indexes.php" method="post"
|
||||
onsubmit="return checkFormElementInRange(this, 'idx_num_fields',
|
||||
onsubmit="return checkFormElementInRange(this, 'added_fields',
|
||||
'<?php echo str_replace('\'', '\\\'', __('Column count has to be larger than zero.')); ?>',
|
||||
1)">
|
||||
<fieldset>
|
||||
@@ -689,11 +689,7 @@ if (! $tbl_is_view && ! $db_is_information_schema && 'ARCHIVE' != $tbl_type) {
|
||||
echo sprintf(__('Create an index on %s columns'),
|
||||
'<input type="text" size="2" name="added_fields" value="1" />');
|
||||
?>
|
||||
<input type="submit" name="create_index" value="<?php echo __('Go'); ?>"
|
||||
onclick="return checkFormElementInRange(this.form,
|
||||
'idx_num_fields',
|
||||
'<?php echo str_replace('\'', '\\\'', __('Column count has to be larger than zero.')); ?>',
|
||||
1)" />
|
||||
<input type="submit" name="create_index" value="<?php echo __('Go'); ?>" />
|
||||
</fieldset>
|
||||
</form>
|
||||
<br />
|
||||
|
Reference in New Issue
Block a user