Dotclear

Changeset 1018:f4ac115fc24f for inc


Ignore:
Timestamp:
11/18/12 23:13:00 (13 years ago)
Author:
JcDenis
Branch:
default
Children:
1019:90f40fdb4a30, 1029:a852ebcec2d0
Message:

Fix #1186 : Allow wildcard for IP address on comments filters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/core/class.dc.blog.php

    r1015 r1018  
    18731873           
    18741874          if (isset($params['comment_ip'])) { 
    1875                $strReq .= "AND comment_ip = '".$this->con->escape($params['comment_ip'])."' "; 
     1875               $comment_ip = $this->con->escape(str_replace('*','%',$params['comment_ip'])); 
     1876               $strReq .= "AND comment_ip LIKE '".$comment_ip."' "; 
    18761877          } 
    18771878           
Note: See TracChangeset for help on using the changeset viewer.

Sites map