i forgot another m

Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
Skylar "The Cobra" Widulski 2023-08-26 06:10:16 -04:00
parent ddb3069c27
commit ad3ab8219e
Signed by untrusted user: cobra
GPG Key ID: 4FD8F812083FF6F9
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@
file_put_contents("/var/spool/list", $email . PHP_EOL, FILE_APPEND);
} else {
$contents = file_get_contents("/var/spool/list");
$contents = preg_replace("/^" . preg_quote($email) . "$/", '', $contents);
$contents = preg_replace("/^" . preg_quote($email) . "$/m", '', $contents);
$contents = preg_replace("/(^[\r\n]*|[\r\n]+)[\s\t]*[\r\n]+/", "\n", $contents);
file_put_contents("/var/spool/list", $contents);
}