From 4566db2a7ce8291637b92085bdf0480175b26df7 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Sat, 30 Jun 2018 14:30:45 +0200 Subject: [PATCH] Use passed argument in new function add_regex() Signed-off-by: DL6ER --- scripts/pi-hole/php/add.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pi-hole/php/add.php b/scripts/pi-hole/php/add.php index fe4668cb..99f8a55d 100644 --- a/scripts/pi-hole/php/add.php +++ b/scripts/pi-hole/php/add.php @@ -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}
Error message: $err"; + echo "Unable to add regex \"".htmlspecialchars($regex)."\" to ${regexfile}
Error message: $err"; } else {