Changeset 4183


Ignore:
Timestamp:
11/04/09 21:51:56 (10 years ago)
Author:
nikrou
Message:

bug 1220 : merge from trunk
fix regression when search by author or keyword contains quote

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/comments.php

    r4140 r4183  
    188188  array( 
    189189    'F_ACTION'=>PHPWG_ROOT_PATH.'comments.php', 
    190     'F_KEYWORD'=> @htmlspecialchars($_GET['keyword'], ENT_QUOTES, 'utf-8'), 
    191     'F_AUTHOR'=> @htmlspecialchars($_GET['author'], ENT_QUOTES, 'utf-8'), 
     190    'F_KEYWORD'=> @htmlspecialchars(stripslashes($_GET['keyword'], ENT_QUOTES, 'utf-8')), 
     191    'F_AUTHOR'=> @htmlspecialchars(stripslashes($_GET['author'], ENT_QUOTES, 'utf-8')), 
    192192    ) 
    193193  ); 
     
    258258 
    259259$query = ' 
    260 SELECT COUNT(DISTINCT(id)) 
     260SELECT COUNT(DISTINCT(com.id)) 
    261261  FROM '.IMAGE_CATEGORY_TABLE.' AS ic 
    262262    INNER JOIN '.COMMENTS_TABLE.' AS com     
Note: See TracChangeset for help on using the changeset viewer.