mirror of
https://github.com/pi-hole/web.git
synced 2026-04-24 02:39:25 +01:00
Write newline after wildcard
This makes the web interface add wildcards in the same way as the CLI. Signed-off-by: Mark Drobnak <mark.drobnak@gmail.com>
This commit is contained in:
@@ -48,7 +48,7 @@ if(!function_exists('hash_equals')) {
|
||||
function add_regex($regex, $mode=FILE_APPEND, $append="\n")
|
||||
{
|
||||
global $regexfile;
|
||||
if(file_put_contents($regexfile, $append.$regex, $mode) === FALSE)
|
||||
if(file_put_contents($regexfile, $regex.$append, $mode) === FALSE)
|
||||
{
|
||||
$err = error_get_last()["message"];
|
||||
echo "Unable to add regex \"".htmlspecialchars($regex)."\" to ${regexfile}<br>Error message: $err";
|
||||
|
||||
Reference in New Issue
Block a user