mirror of
https://github.com/pi-hole/web.git
synced 2026-04-24 18:59:48 +01:00
Use passed argument in new function add_regex()
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -20,7 +20,7 @@ function add_regex($regex)
|
||||
if(file_put_contents($regexfile, "\n".$regex, FILE_APPEND) === FALSE)
|
||||
{
|
||||
$err = error_get_last()["message"];
|
||||
echo "Unable to add regex \"".htmlspecialchars($_POST['domain'])."\" to ${regexfile}<br>Error message: $err";
|
||||
echo "Unable to add regex \"".htmlspecialchars($regex)."\" to ${regexfile}<br>Error message: $err";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user