From 4d384eb4dc686a44186d28db6d924b04c95219b6 Mon Sep 17 00:00:00 2001 From: Seednode Date: Tue, 7 Nov 2023 20:34:39 -0600 Subject: [PATCH] Replaced HTML escape character for single quote with URL encoding --- cmd/root.go | 2 +- cmd/sort.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index d2ddd05..8bd476e 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -12,7 +12,7 @@ import ( ) const ( - ReleaseVersion string = "3.2.8" + ReleaseVersion string = "3.2.9" ) var ( diff --git a/cmd/sort.go b/cmd/sort.go index 3e5a8d2..ab850f8 100644 --- a/cmd/sort.go +++ b/cmd/sort.go @@ -91,7 +91,7 @@ Loop: } func pathUrlEscape(path string) string { - return strings.Replace(path, `'`, `'`, -1) + return strings.Replace(path, `'`, `%27`, -1) } func paginateSorted(path, first, last, queryParams string, regexes *regexes, formats types.Types) (string, error) {