make nsfw less sensitive to leading/trailing whitespace in list of terms
parent
bdbc3a2625
commit
e533312985
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue