diff --git a/nsfw.tgz b/nsfw.tgz index e7c959e8..fddda657 100644 Binary files a/nsfw.tgz and b/nsfw.tgz differ diff --git a/nsfw/nsfw.php b/nsfw/nsfw.php index dba9f1e8..22d65d05 100644 --- a/nsfw/nsfw.php +++ b/nsfw/nsfw.php @@ -87,14 +87,18 @@ function nsfw_prepare_body(&$a,&$b) { continue; } - if(stristr($b,$word)) { + if(stristr($b['html'],$word)) { $found = true; break; } + if(stristr($b['item']['tag'], ']' . $word . '[' )) { + $found = true; + break; + } } } if($found) { $rnd = random_string(8); - $b = ''; + $b['html'] = ''; } }