This commit is contained in:
@@ -59,7 +59,7 @@
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "Default.aspx/VerifyHostNameAndAddress",
|
||||
data: "{'name': '" + hostName + "', 'address': '" + hostAddress + "'}", // TODO: potential input vulnerability - strip single quotes from input
|
||||
data: "{'name': '" + hostName + "', 'address': '" + hostAddress + "'}", // TODO: injection vulnerability - strip single quotes from input
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
async: false, // blocks until function returns - race conditions otherwise
|
||||
@@ -91,8 +91,6 @@
|
||||
success: function (msg) {
|
||||
if (msg.d == true) {
|
||||
|
||||
alert('Yes, writable');
|
||||
|
||||
// Yes, config is writable. Hide "unwritable" div, show "writable" div, all is nice
|
||||
$('#DivDatabaseUnwritable').css('display', 'none');
|
||||
$('#DivDatabaseWritable').css('display', 'inline');
|
||||
@@ -100,8 +98,6 @@
|
||||
} else {
|
||||
// Config is NOT writable. Keep the error on-screen and keep re-checking every two seconds.
|
||||
|
||||
alert('No, not writable - rechecking');
|
||||
|
||||
setTimeout('recheckConfigurationWritability();', 5000); // 5s until first re-check
|
||||
}
|
||||
}
|
||||
@@ -151,8 +147,6 @@
|
||||
success: function (msg) {
|
||||
if (msg.d == true) {
|
||||
|
||||
alert('Yes, writable - rechecking');
|
||||
|
||||
// Yes, config is writable. Hide "unwritable" div, show "writable" div, all is nice
|
||||
$('#DivDatabaseUnwritable').css('display', 'none');
|
||||
$('#DivDatabaseWritable').fadeIn('slow');
|
||||
@@ -160,8 +154,6 @@
|
||||
} else {
|
||||
// Config is NOT writable. Keep the error on-screen and keep re-checking every two seconds.
|
||||
|
||||
alert('No, not writable - rechecking');
|
||||
|
||||
setTimeout('recheckConfigurationWritability();', 2000);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user