1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-30 18:24:29 +01:00

wordfilters (non-regex) should be case-insensitive

This commit is contained in:
Michael Save 2012-01-26 18:35:16 +11:00
parent cd30f3b0b9
commit d404a40ce8

View File

@ -1283,7 +1283,7 @@
if(isset($filter[2]) && $filter[2]) { if(isset($filter[2]) && $filter[2]) {
$body = preg_replace($filter[0], $filter[1], $body); $body = preg_replace($filter[0], $filter[1], $body);
} else { } else {
$body = str_replace($filter[0], $filter[1], $body); $body = str_ireplace($filter[0], $filter[1], $body);
} }
} }
} }