Browse Source

make nsfw less sensitive to leading/trailing whitespace in list of terms

pull/54/head
friendica 9 years ago
parent
commit
e533312985
  1. BIN
      nsfw.tgz
  2. 3
      nsfw/nsfw.php

BIN
nsfw.tgz

3
nsfw/nsfw.php

@ -94,7 +94,8 @@ function nsfw_prepare_body(&$a,&$b) {
$found = false;
if(count($arr)) {
foreach($arr as $word) {
if(! strlen(trim($word))) {
$word = trim($word);
if(! strlen($word)) {
continue;
}
if(strpos($word,'/') === 0) {

Loading…
Cancel
Save