mirror of
https://github.com/pi-hole/web.git
synced 2026-05-02 14:42:23 +01:00
Improve domain whitespace handling in inputs
This commit is contained in:
@@ -141,7 +141,7 @@ function add(arg) {
|
||||
$.ajax({
|
||||
url: "scripts/pi-hole/php/add.php",
|
||||
method: "post",
|
||||
data: {"domain":domain.val(), "list":locallistType, "token":token},
|
||||
data: {"domain":domain.val().trim(), "list":locallistType, "token":token},
|
||||
success: function(response) {
|
||||
if (response.indexOf("] Pi-hole blocking is ") === -1) {
|
||||
alFailure.show();
|
||||
|
||||
Reference in New Issue
Block a user