Rspamd user settings: fix From header match
The request_header regex appears to not be expected to be encapsulated in slashes and does not seem to accept flags.
This commit is contained in:
parent
fcd8cfa4f4
commit
8383ba5e9c
@ -192,7 +192,7 @@ while ($row = array_shift($rows)) {
|
|||||||
$value_sane = preg_replace("/\.\./", ".", (preg_replace("/\*/", ".*", $grouped_lists[0])));
|
$value_sane = preg_replace("/\.\./", ".", (preg_replace("/\*/", ".*", $grouped_lists[0])));
|
||||||
?>
|
?>
|
||||||
request_header = {
|
request_header = {
|
||||||
"From" = "/(<?=$value_sane;?>)/i";
|
"From" = "(<?=$value_sane;?>)";
|
||||||
}
|
}
|
||||||
<?php
|
<?php
|
||||||
if (!filter_var(trim($row['object']), FILTER_VALIDATE_EMAIL)) {
|
if (!filter_var(trim($row['object']), FILTER_VALIDATE_EMAIL)) {
|
||||||
@ -284,7 +284,7 @@ while ($row = array_shift($rows)) {
|
|||||||
$value_sane = preg_replace("/\.\./", ".", (preg_replace("/\*/", ".*", $grouped_lists[0])));
|
$value_sane = preg_replace("/\.\./", ".", (preg_replace("/\*/", ".*", $grouped_lists[0])));
|
||||||
?>
|
?>
|
||||||
request_header = {
|
request_header = {
|
||||||
"From" = "/(<?=$value_sane;?>)/i";
|
"From" = "(<?=$value_sane;?>)";
|
||||||
}
|
}
|
||||||
<?php
|
<?php
|
||||||
if (!filter_var(trim($row['object']), FILTER_VALIDATE_EMAIL)) {
|
if (!filter_var(trim($row['object']), FILTER_VALIDATE_EMAIL)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user