Show
Ignore:
Timestamp:
04/02/08 06:12:41 (20 months ago)
Author:
fumiakiy
Message:

Added ability to filter search by author and/or category. BugId:69286

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-33/lib/MT/Template/Context/Search.pm

    r1640 r1708  
    99use strict; 
    1010use base qw( MT::Template::Context ); 
    11 use MT::Util qw( encode_url ); 
     11use MT::Util qw( encode_url decode_html ); 
    1212 
    1313sub load_core_tags { 
     
    134134        my ( $ctx, $args, $cond ) = @_; 
    135135 
    136     my $search_string = encode_url($ctx->stash('search_string')); 
     136    my $search_string = decode_html( $ctx->stash('search_string') ) ; 
    137137    my $cgipath = $ctx->_hdlr_cgi_path($args); 
    138138    my $script = $ctx->{config}->SearchScript; 
    139     my $link = $cgipath.$script . '?search=' . $search_string; 
     139    my $link = $cgipath.$script . '?search=' . encode_url( $search_string ); 
    140140    if ( my $mode = $ctx->stash('mode') ) { 
    141141        $mode = encode_url($mode);