@@ -52,7 +52,7 @@ sub evaluate_uri {
52
52
# as base URL.
53
53
# Therefore, if we needed to strip PATH_INFO, then we know that we have
54
54
# to build the base URL ourselves:
55
- our $path_info = $ENV {" PATH_INFO" };
55
+ our $path_info = decode_utf8( $ENV {" PATH_INFO" }) ;
56
56
if ($path_info ) {
57
57
if ($my_url =~ s ,\Q$path_info \E$, , &&
58
58
$my_uri =~ s ,\Q$path_info \E$, , &&
@@ -816,9 +816,9 @@ sub evaluate_query_params {
816
816
817
817
while (my ($name , $symbol ) = each %cgi_param_mapping ) {
818
818
if ($symbol eq ' opt' ) {
819
- $input_params {$name } = [ $cgi -> param($symbol ) ];
819
+ $input_params {$name } = [ map { decode_utf8( $_ ) } $cgi -> param($symbol ) ];
820
820
} else {
821
- $input_params {$name } = $cgi -> param($symbol );
821
+ $input_params {$name } = decode_utf8( $cgi -> param($symbol ) );
822
822
}
823
823
}
824
824
}
@@ -2765,7 +2765,7 @@ sub git_populate_project_tagcloud {
2765
2765
}
2766
2766
2767
2767
my $cloud ;
2768
- my $matched = $cgi -> param( ' by_tag ' ) ;
2768
+ my $matched = $input_params { ' ctag ' } ;
2769
2769
if (eval { require HTML::TagCloud; 1; }) {
2770
2770
$cloud = HTML::TagCloud-> new;
2771
2771
foreach my $ctag (sort keys %ctags_lc ) {
@@ -3871,7 +3871,7 @@ sub print_search_form {
3871
3871
-values => [' commit' , ' grep' , ' author' , ' committer' , ' pickaxe' ]) .
3872
3872
$cgi -> sup($cgi -> a({-href => href(action => " search_help" )}, " ?" )) .
3873
3873
" search:\n " ,
3874
- $cgi -> textfield(-name => " s" , -value => $searchtext ) . " \n " .
3874
+ $cgi -> textfield(-name => " s" , -value => $searchtext , - override => 1 ) . " \n " .
3875
3875
" <span title=\" Extended regular expression\" >" .
3876
3876
$cgi -> checkbox(-name => ' sr' , -value => 1, -label => ' re' ,
3877
3877
-checked => $search_use_regexp ) .
@@ -5280,7 +5280,7 @@ sub git_project_list_body {
5280
5280
5281
5281
my $check_forks = gitweb_check_feature(' forks' );
5282
5282
my $show_ctags = gitweb_check_feature(' ctags' );
5283
- my $tagfilter = $show_ctags ? $cgi -> param( ' by_tag ' ) : undef ;
5283
+ my $tagfilter = $show_ctags ? $input_params { ' ctag ' } : undef ;
5284
5284
$check_forks = undef
5285
5285
if ($tagfilter || $searchtext );
5286
5286
@@ -5992,7 +5992,7 @@ sub git_project_list {
5992
5992
}
5993
5993
print $cgi -> startform(-method => " get" ) .
5994
5994
" <p class=\" projsearch\" >Search:\n " .
5995
- $cgi -> textfield(-name => " s" , -value => $searchtext ) . " \n " .
5995
+ $cgi -> textfield(-name => " s" , -value => $searchtext , - override => 1 ) . " \n " .
5996
5996
" </p>" .
5997
5997
$cgi -> end_form() . " \n " ;
5998
5998
git_project_list_body(\@list , $order );
@@ -6195,7 +6195,7 @@ sub git_tag {
6195
6195
6196
6196
sub git_blame_common {
6197
6197
my $format = shift || ' porcelain' ;
6198
- if ($format eq ' porcelain' && $cgi -> param( ' js ' ) ) {
6198
+ if ($format eq ' porcelain' && $input_params { ' javascript ' } ) {
6199
6199
$format = ' incremental' ;
6200
6200
$action = ' blame_incremental' ; # for page title etc
6201
6201
}
0 commit comments