https://reisub.nsupdate.info/git
/
friendica-addons.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdbc3a2
)
make nsfw less sensitive to leading/trailing whitespace in list of terms
author
friendica
<info@friendica.com>
Fri, 11 May 2012 04:35:48 +0000
(21:35 -0700)
committer
friendica
<info@friendica.com>
Fri, 11 May 2012 04:35:48 +0000
(21:35 -0700)
nsfw.tgz
patch
|
blob
|
history
nsfw/nsfw.php
patch
|
blob
|
history
diff --git
a/nsfw.tgz
b/nsfw.tgz
index
6897cb8
..
ccddb1e
100755
(executable)
Binary files a/nsfw.tgz and b/nsfw.tgz differ
diff --git
a/nsfw/nsfw.php
b/nsfw/nsfw.php
index
0f94158
..
4a65b72
100755
(executable)
--- a/
nsfw/nsfw.php
+++ b/
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) {