diff --git a/js/pihole/list.js b/js/pihole/list.js index 652607b5..3f2e2d74 100644 --- a/js/pihole/list.js +++ b/js/pihole/list.js @@ -85,7 +85,8 @@ function add() { method: "post", data: {"domain":domain.val(), "list":list_type, "token":token}, success: function(response) { - if (response.indexOf("not a valid argument")>=0) { + if (response.indexOf("not a valid argument") >= 0 || + response.indexOf("is not a valid domain") >= 0) { alFailure.show(); alFailure.delay(1000).fadeOut(2000, function() { alFailure.hide(); diff --git a/php/auth.php b/php/auth.php index 1447296f..93ab86fc 100644 --- a/php/auth.php +++ b/php/auth.php @@ -1,4 +1,5 @@ diff --git a/php/func.php b/php/func.php new file mode 100644 index 00000000..060b4f43 --- /dev/null +++ b/php/func.php @@ -0,0 +1,10 @@ + \ No newline at end of file