瀏覽代碼

[Rspamd] Fixes #960

andre.peters 7 年之前
父節點
當前提交
c7729f195b
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      data/conf/rspamd/dynmaps/settings.php

+ 2 - 2
data/conf/rspamd/dynmaps/settings.php

@@ -196,7 +196,7 @@ while ($row = array_shift($rows)) {
 	}
 	}
 	whitelist_header_<?=$username_sane;?> {
 	whitelist_header_<?=$username_sane;?> {
 <?php
 <?php
-	$stmt = $pdo->prepare("SELECT GROUP_CONCAT(REPLACE(CONCAT('^', `value`, '$'), '*', '.*') SEPARATOR '|') AS `value` FROM `filterconf`
+	$stmt = $pdo->prepare("SELECT GROUP_CONCAT(REPLACE(CONCAT('\<', `value`, '\>'), '*', '.*') SEPARATOR '|') AS `value` FROM `filterconf`
 		WHERE `object`= :object
 		WHERE `object`= :object
 			AND `option` = 'whitelist_from'");
 			AND `option` = 'whitelist_from'");
 	$stmt->execute(array(':object' => $row['object']));
 	$stmt->execute(array(':object' => $row['object']));
@@ -288,7 +288,7 @@ while ($row = array_shift($rows)) {
 	}
 	}
 	blacklist_header_<?=$username_sane;?> {
 	blacklist_header_<?=$username_sane;?> {
 <?php
 <?php
-	$stmt = $pdo->prepare("SELECT GROUP_CONCAT(REPLACE(CONCAT('^', `value`, '$'), '*', '.*') SEPARATOR '|') AS `value` FROM `filterconf`
+	$stmt = $pdo->prepare("SELECT GROUP_CONCAT(REPLACE(CONCAT('\<', `value`, '\>'), '*', '.*') SEPARATOR '|') AS `value` FROM `filterconf`
 		WHERE `object`= :object
 		WHERE `object`= :object
 			AND `option` = 'blacklist_from'");
 			AND `option` = 'blacklist_from'");
 	$stmt->execute(array(':object' => $row['object']));
 	$stmt->execute(array(':object' => $row['object']));