From 5a56c9f797f8756d0403635dd1c376d100e22337 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Thu, 15 Nov 2012 10:30:38 +0000 Subject: [PATCH] --- Site5/Pages/v5/Init/Default.aspx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Site5/Pages/v5/Init/Default.aspx b/Site5/Pages/v5/Init/Default.aspx index bec7d547..d60bfaa6 100644 --- a/Site5/Pages/v5/Init/Default.aspx +++ b/Site5/Pages/v5/Init/Default.aspx @@ -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); } }