make nsfw less sensitive to leading/trailing whitespace in list of terms
This commit is contained in:
@@ -94,7 +94,8 @@ function nsfw_prepare_body(&$a,&$b) {
|
|||||||
$found = false;
|
$found = false;
|
||||||
if(count($arr)) {
|
if(count($arr)) {
|
||||||
foreach($arr as $word) {
|
foreach($arr as $word) {
|
||||||
if(! strlen(trim($word))) {
|
$word = trim($word);
|
||||||
|
if(! strlen($word)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if(strpos($word,'/') === 0) {
|
if(strpos($word,'/') === 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user