File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1616 {{if not .TabName}}{{$tabQuery = ""}}{{end}}
1717 {{$languageQuery := printf "language=%s&" .Language}}
1818 {{if not .TabName}}{{$languageQuery = ""}}{{end}}
19- {{$queryParams := printf "%s%sq=%s" $tabQuery $languageQuery .Keyword}}
19+ {{$queryParams := ( printf "%s%sq=%s" $tabQuery $languageQuery .Keyword) | PathEscape }}
2020 <!-- Filter -->
2121 {{$queryParamsWithSort := printf "%s&sort=%s" $queryParams .SortType}}
2222 <form class="ui form ignore-dirty" id="repo-search-form" data-query-params="{{$queryParamsWithSort}}">
2626 </span>
2727 {{svg "octicon-triangle-down" 14 "dropdown icon"}}
2828 <div class="menu">
29- <a class="item" href="{{printf "%s?%s" .Link $queryParamsWithSort}}">{{ctx.Locale.Tr "filter.clear"}}</a>
29+ <a class="item" href="{{printf "%s?%s" ( .Link | PathEscapeSegments) $queryParamsWithSort}}">{{ctx.Locale.Tr "filter.clear"}}</a>
3030 <div class="divider"></div>
3131 <label class="item"><input type="radio" name="archived" {{if .IsArchived.IsTrue}}checked{{end}} value="1"> {{ctx.Locale.Tr "filter.is_archived"}}</label>
3232 <label class="item"><input type="radio" name="archived" {{if .IsArchived.IsFalse}}checked{{end}} value="0"> {{ctx.Locale.Tr "filter.not_archived"}}</label>
5252 </span>
5353 {{svg "octicon-triangle-down" 14 "dropdown icon"}}
5454 <div class="menu">
55- {{$href := printf "%s?%s" .Link $queryParams}}
55+ {{$href := printf "%s?%s" ( .Link | PathEscapeSegments) $queryParams }}
5656 <a class="{{if eq .SortType "newest"}}active {{end}}item" href="{{$href}}&sort=newest">{{ctx.Locale.Tr "repo.issues.filter_sort.latest"}}</a>
5757 <a class="{{if eq .SortType "oldest"}}active {{end}}item" href="{{$href}}&sort=oldest">{{ctx.Locale.Tr "repo.issues.filter_sort.oldest"}}</a>
5858 <a class="{{if eq .SortType "alphabetically"}}active {{end}}item" href="{{$href}}&sort=alphabetically">{{ctx.Locale.Tr "repo.issues.label.filter_sort.alphabetically"}}</a>
You can’t perform that action at this time.
0 commit comments