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 16
16
{{if not .TabName}}{{$tabQuery = ""}}{{end}}
17
17
{{$languageQuery := printf "language=%s&" .Language}}
18
18
{{if not .TabName}}{{$languageQuery = ""}}{{end}}
19
- {{$queryParams := printf "%s%sq=%s" $tabQuery $languageQuery .Keyword}}
19
+ {{$queryParams := ( printf "%s%sq=%s" $tabQuery $languageQuery .Keyword) | PathEscape }}
20
20
<!-- Filter -->
21
21
{{$queryParamsWithSort := printf "%s&sort=%s" $queryParams .SortType}}
22
22
<form class="ui form ignore-dirty" id="repo-search-form" data-query-params="{{$queryParamsWithSort}}">
26
26
</span>
27
27
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
28
28
<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>
30
30
<div class="divider"></div>
31
31
<label class="item"><input type="radio" name="archived" {{if .IsArchived.IsTrue}}checked{{end}} value="1"> {{ctx.Locale.Tr "filter.is_archived"}}</label>
32
32
<label class="item"><input type="radio" name="archived" {{if .IsArchived.IsFalse}}checked{{end}} value="0"> {{ctx.Locale.Tr "filter.not_archived"}}</label>
52
52
</span>
53
53
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
54
54
<div class="menu">
55
- {{$href := printf "%s?%s" .Link $queryParams}}
55
+ {{$href := printf "%s?%s" ( .Link | PathEscapeSegments) $queryParams }}
56
56
<a class="{{if eq .SortType "newest"}}active {{end}}item" href="{{$href}}&sort=newest">{{ctx.Locale.Tr "repo.issues.filter_sort.latest"}}</a>
57
57
<a class="{{if eq .SortType "oldest"}}active {{end}}item" href="{{$href}}&sort=oldest">{{ctx.Locale.Tr "repo.issues.filter_sort.oldest"}}</a>
58
58
<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