Changeset 18370 for extensions/comments_blacklist/include/functions.inc.php
- Timestamp:
- Sep 29, 2012, 12:00:12 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/comments_blacklist/include/functions.inc.php
r18369 r18370 13 13 $blacklist = file(COMM_BLACKLIST_FILE, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); 14 14 $blacklist = array_map('strtolower', $blacklist); 15 $content = strtolower($comm['content']);16 $author = strtolower($comm['author']);15 $content = ' '.strtolower($comm['content']).' '; 16 $author = ' '.strtolower($comm['author']).' '; 17 17 18 18 foreach ($blacklist as $word) 19 19 { 20 $word = ' '.$word.' '; 20 21 if ( strpos($content, $word)!==false or strpos($author, $word)!==false ) 21 22 {
Note: See TracChangeset
for help on using the changeset viewer.