mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 20:55:28 +00:00
Directly manipulate regex.list from PHP to avoid detour over bash. This needs read/write permissions of the PHP user on "/etc/pihole/regex.list" !
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -146,7 +146,8 @@ function add(arg) {
|
||||
method: "post",
|
||||
data: {"domain":domain.val().trim(), "list":locallistType, "token":token},
|
||||
success: function(response) {
|
||||
if (response.indexOf("] Pi-hole blocking is ") === -1) {
|
||||
if (locallistType !== "wild" && response.indexOf("] Pi-hole blocking is ") === -1 ||
|
||||
locallistType === "wild" && response.length > 1) {
|
||||
alFailure.show();
|
||||
err.html(response);
|
||||
alFailure.delay(4000).fadeOut(2000, function() {
|
||||
|
||||
Reference in New Issue
Block a user