Plugin Directory

Changeset 185520


Ignore:
Timestamp:
12/21/2009 02:18:26 AM (16 years ago)
Author:
ljmacphee
Message:

minor fixes

Location:
ttc-user-registration-bot-detector/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ttc-user-registration-bot-detector/trunk/readme.txt

    r185118 r185520  
    44Requires at least: 2.5
    55Tested up to: 2.5.1
    6 Stable tag: 1.10
     6Stable tag: 2.1
    77
    88This plugin blocks and logs most bot user registrations.
  • ttc-user-registration-bot-detector/trunk/ttc_user_registration.php

    r185118 r185520  
    33/*
    44Plugin Name: TimesToCome Stop Bot Registration
    5 Version: 1.10
     5Version: 2.1
    66Plugin URI:  http://herselfswebtools.com/2008/06/wordpress-plugin-to-prevent-bot-registrations.html
    77Description: Stop bots from registering as users
     
    2222//          which is in here twice starting around line 265
    2323// ******************************************************************************************* 
     24// 2.1 minor fixes
     25   
    2426   
    2527   
     
    5153            $http_user_agent = htmlentities($http_user_agent);
    5254            $http_remote_addr = htmlentities($http_remote_addr);
    53             $http_request_uri = htmlentities($html_request_uri);
    54 
     55            $user = htmlentities($user);
     56       
    5557
    5658           
     
    7476           
    7577            if ( strlen($email) > 200 ){ $email = substr ($email, 0, 200 ); }
    76                    
     78               
     79            $email = htmlentities($email);
     80           
    7781            $sql = "INSERT INTO " . $blacklist_table_name . " ( blacklisted ) VALUES ( '$email' )";
    7882            $result = $wpdb->query( $sql );
     
    9195                ttc_wp_user_registration_install();
    9296            }
    93                    
     97               
     98            $ip = htmlentities($ip);
     99           
    94100            $sql = "INSERT INTO " . $ip_table_name . " ( ip ) VALUES ( '$ip' )";
    95101            $result = $wpdb->query( $sql );
Note: See TracChangeset for help on using the changeset viewer.