Changeset 1551

Show
Ignore:
Timestamp:
03/08/08 18:11:47 (2 months ago)
Author:
Neal
Message:

Fixed search.php not properly escaping reserved URI characters.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/punbb-1.3-dev/upload/search.php

    r1548 r1551  
    427427                $url_type = $pun_url['search_resultft']; 
    428428 
    429                 $search_id = array($keywords, $forum, $author, ($search_in == 0 ) ? 'all' : (($search_in == 1) ? 'message' : 'subject'), $sort_by, $sort_dir, $show_as); 
     429                $search_id = array(rawurlencode($keywords), $forum, rawurlencode($author), ($search_in == 0 ) ? 'all' : (($search_in == 1) ? 'message' : 'subject'), $sort_by, $sort_dir, $show_as); 
    430430        } 
    431431        // We aren't doing a fulltext but we are getting results, if a valid search_id was supplied we attempt to fetch the search results from the cache