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 {