mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
use double quotes in config to avoid #211
This commit is contained in:
@@ -1108,6 +1108,12 @@ global $wavelog_url;
|
||||
return;
|
||||
}
|
||||
|
||||
if (db_hostname.includes('"') || db_username.includes('"') || db_password.includes('"') || db_name.includes('"')) {
|
||||
$('#db_connection_testresult').addClass('alert-danger');
|
||||
$('#db_connection_testresult').html('Error: Input cannot contain double quotes (").');
|
||||
return;
|
||||
}
|
||||
|
||||
var originalButtonText = $('#db_connection_test_button').html();
|
||||
$('#db_connection_test_button').html('<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span> Connecting...').prop('disabled', true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user