diff --git a/cmd/root.go b/cmd/root.go
index b2ec6b5..b5fc8b0 100644
--- a/cmd/root.go
+++ b/cmd/root.go
@@ -12,7 +12,7 @@ import (
)
const (
- ReleaseVersion string = "3.2.2"
+ ReleaseVersion string = "3.2.3"
)
var (
diff --git a/cmd/sort.go b/cmd/sort.go
index e2c2888..44bc441 100644
--- a/cmd/sort.go
+++ b/cmd/sort.go
@@ -6,6 +6,7 @@ package cmd
import (
"fmt"
+ "net/url"
"sort"
"strings"
@@ -147,28 +148,28 @@ func paginateSorted(path, first, last, queryParams string, regexes *regexes, for
html.WriteString(fmt.Sprintf(``,
Prefix,
mediaPrefix,
- first,
+ url.QueryEscape(first),
queryParams,
firstStatus))
html.WriteString(fmt.Sprintf(``,
Prefix,
mediaPrefix,
- prevPage,
+ url.QueryEscape(prevPage),
queryParams,
prevStatus))
html.WriteString(fmt.Sprintf(``,
Prefix,
mediaPrefix,
- nextPage,
+ url.QueryEscape(nextPage),
queryParams,
nextStatus))
html.WriteString(fmt.Sprintf(``,
Prefix,
mediaPrefix,
- last,
+ url.QueryEscape(last),
queryParams,
lastStatus))