Changeset 118605 in spip-zone


Ignore:
Timestamp:
Nov 13, 2019, 5:08:01 PM (13 months ago)
Author:
cedric@…
Message:

on loge dans nospam_suspects les post suspects arretes a cause d'un jeton ou encrypt manquant avec des infos IP, UA et POST

Location:
_plugins_/nospam/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/nospam/trunk/inc/nospam_encrypt.php

    r118602 r118605  
    221221        if (!_request('_nospam_encrypt')) {
    222222                spip_log("SPAM_ENCRYPT_NAME active mais _nospam_encrypt manquant sur formulaire $form", 'nospam' . _LOG_INFO_IMPORTANTE);
     223                $ua = (isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : 'undefined');
     224                spip_log("Suspect SPAMMEUR (_nospam_encrypt) UA:$ua POST:" . json_encode($_POST), 'nospam_suspects' . _LOG_INFO_IMPORTANTE);
    223225                return _T('nospam:erreur_jeton');
    224226        }
    225227        if (!$jeton = _request('_jeton')){
    226228                spip_log("SPAM_ENCRYPT_NAME active mais _jeton manquant sur formulaire $form", 'nospam' . _LOG_INFO_IMPORTANTE);
     229                $ua = (isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : 'undefined');
     230                spip_log("Suspect SPAMMEUR (_jeton) UA:$ua POST:" . json_encode($_POST), 'nospam_suspects' . _LOG_INFO_IMPORTANTE);
    227231                return _T('nospam:erreur_jeton');
    228232        }
  • _plugins_/nospam/trunk/paquet.xml

    r118604 r118605  
    22        prefix="nospam"
    33        categorie="performance"
    4         version="2.1.2"
     4        version="2.1.3"
    55        etat="test"
    66        compatibilite="[3.1.0;3.3.*]"
Note: See TracChangeset for help on using the changeset viewer.