mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 04:38:28 +00:00
Merge pull request #1293 from jacklul/patch-2
Trim user input where applicable
This commit is contained in:
@@ -255,7 +255,7 @@ function addClient() {
|
||||
var ip = $("#select").val();
|
||||
var comment = $("#new_comment").val();
|
||||
if (ip === "custom") {
|
||||
ip = $("#ip-custom").val();
|
||||
ip = $("#ip-custom").val().trim();
|
||||
}
|
||||
|
||||
utils.disableAll();
|
||||
|
||||
Reference in New Issue
Block a user