File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1607,7 +1607,11 @@ ($$$$$$$$$)
1607
1607
$labels =~ s / // g if $labels ;
1608
1608
$labels = $labels ? " $labels ,action" : " action" if lc $type eq ' actions' ;
1609
1609
$max = $full ? $self -> {maxlines }-> {$channel } // DEFAULT_MAXLINES : MAX;
1610
- $q = " per_page=$max &state=$state " ;
1610
+ $q = " &per_page=$max " ;
1611
+ if ($state =~ / ^open$ /i ) {$q .= " &state=open" }
1612
+ elsif ($state =~ / ^closed$ /i ) {$q .= " &state=closed" }
1613
+ elsif ($state =~ / ^all$ /i ) {$q .= " &state=all" }
1614
+ else {return " Sorry, you found a bug! (Unhandled \$ state in find_issues.)" }
1611
1615
$creator = $who if $creator && $creator =~ / ^m[ey]$ /i ;
1612
1616
$assignee = $who if $assignee && $assignee =~ / ^m[ey]$ /i ;
1613
1617
$q .= " &assignee=" . esc($self -> name_to_login($assignee )) if $assignee ;
@@ -2079,7 +2083,7 @@ ($)
2079
2083
my ($octets );
2080
2084
2081
2085
$octets = encode(" UTF-8" , $s );
2082
- $octets =~ s / ([^A-Za-z0-9._~!$'()*,=:@\/ -])/ "%".sprintf("%02x",ord($1 ))/ eg ;
2086
+ $octets =~ s / ([^A-Za-z0-9._~!\ $ '()*,=:@\/ -])/ "%".sprintf("%02x",ord($1 ))/ eg ;
2083
2087
return decode(" UTF-8" , $octets );
2084
2088
}
2085
2089
You can’t perform that action at this time.
0 commit comments