Skip to content

Commit

Permalink
Merge branch 'QA_3_4' into QA_3_5
Browse files Browse the repository at this point in the history
  • Loading branch information
lem9 committed Feb 18, 2012
2 parents ff11bfb + 67d9eca commit 33635fb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Expand Up @@ -78,6 +78,9 @@ phpMyAdmin - ChangeLog
- bug #3486970 [import] Exception on XML import
- bug #3488777 [navi] $cfg['ShowTooltipAliasTB'] and blank names in navigation

3.4.10.1 (2012-02-18)
- [security] XSS in replication setup, see PMASA-2012-1

3.4.10.0 (2012-02-14)
- bug #3460090 [interface] TextareaAutoSelect feature broken
- patch #3375984 [export] PHP Array export might generate invalid php code
Expand Down
10 changes: 5 additions & 5 deletions js/replication.js
Expand Up @@ -5,7 +5,7 @@
*/

var random_server_id = Math.floor(Math.random() * 10000000);
var conf_prefix = "server-id=" + random_server_id + "<br />log-bin=mysql-bin<br />log-error=mysql-bin.err<br />";
var conf_prefix = "server-id=" + random_server_id + "\nlog-bin=mysql-bin\nlog-error=mysql-bin.err\n";

function update_config()
{
Expand All @@ -17,16 +17,16 @@ function update_config()
});

if ($('#db_select option:selected').size() == 0) {
$('#rep').html(conf_prefix);
$('#rep').text(conf_prefix);
} else if ($('#db_type option:selected').val() == 'all') {
$('#rep').html(conf_prefix + conf_ignore + database_list);
$('#rep').text(conf_prefix + conf_ignore + database_list);
} else {
$('#rep').html(conf_prefix + conf_do + database_list);
$('#rep').text(conf_prefix + conf_do + database_list);
}
}

$(document).ready(function() {
$('#rep').html(conf_prefix);
$('#rep').text(conf_prefix);
$('#db_type').change(update_config);
$('#db_select').change(update_config);

Expand Down

0 comments on commit 33635fb

Please sign in to comment.