mirror of
https://github.com/pi-hole/web.git
synced 2026-04-24 18:59:48 +01: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:
@@ -44,7 +44,10 @@ function getListContent($listname) {
|
||||
unset($list[$i]);
|
||||
}
|
||||
|
||||
return $list;
|
||||
// Re-index list after possible unset() activity
|
||||
$newlist = array_values($list);
|
||||
|
||||
return $newlist;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user