Ignore:
Timestamp:
Jun 19, 2012, 10:07:06 PM (12 years ago)
Author:
rvelices
Message:

sometimes akismet has false positives - try to get rid of them

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/rv_akismet/main.inc.php

    r13799 r15837  
    4242        include_once( dirname(__FILE__).'/check.inc.php' );
    4343        $action = akismet_user_comment_check($action, $comment);
    44         if (!isset($_SESSION['csi']) && isset($_POST['url']) && strlen($_POST['url']) )
    45         {
    46                 $action = 'reject';
    47                 $_POST['cr'][] = 'csi url';
    48         }
    4944        return $action;
    5045}
     
    7065{
    7166        global $template, $conf;
    72         if (!isset($_SESSION['csi']) && strpos($_SERVER['HTTP_USER_AGENT'],'bot')===false)
     67        if (!isset($_SESSION['csi']) && strpos(@$_SERVER['HTTP_USER_AGENT'],'bot')===false)
    7368        {
    7469                $src = get_root_url().'plugins/'.AKIS_DIR.'/csi.php';
Note: See TracChangeset for help on using the changeset viewer.