Changeset 177
- Timestamp:
- 22/07/06 09:41:21 (2 years ago)
- Files:
-
- blog.lib.php (modified) (2 diffs)
- miscfunctions.lib.php (modified) (1 diff)
- tinymce (deleted)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
blog.lib.php
r176 r177 564 564 $element = "comment"; 565 565 } 566 <<<<<<< .mine 567 //decide if the message is likely to be spam 568 $spam = checkSpam($host, $comment); 569 ======= 566 570 //decided if the comment is likly to be spam 567 571 if (checkRBL($host) or checkBody($comment)) { … … 573 577 $spam = FALSE; 574 578 } 579 >>>>>>> .r175 575 580 //sanitise email 576 581 if (isset($_POST['email']) && trim($_POST['email']) != "" && validEmail(trim($_POST['email']))) { miscfunctions.lib.php
r167 r177 234 234 return $spam; 235 235 } 236 237 # General spam function combining all checks 238 function checkSpam($ip, $message) { 239 $spam=checkRBL($ip); 240 if (preg_match_all("#http#", $message, $out)>5) $spam=true; 241 return $spam; 242 }
