From 2048a8ed6b6457977242267ff700e4859176dad4 Mon Sep 17 00:00:00 2001 From: Rose Hogenson Date: Sun, 20 Apr 2025 08:12:59 -0700 Subject: Use PathEscape instead of QueryEscape --- trash.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'trash.go') diff --git a/trash.go b/trash.go index 37a48ab..f6e51b4 100644 --- a/trash.go +++ b/trash.go @@ -92,7 +92,7 @@ func writeTrashInfo(fileName, trash, now string) (_ string, err error) { }() escapedPath := strings.Split(absPath, string(filepath.Separator)) for i, pathSegment := range escapedPath { - escapedPath[i] = url.QueryEscape(pathSegment) + escapedPath[i] = url.PathEscape(pathSegment) } _, err = fmt.Fprintf(info, `[Trash Info] Path=%s -- cgit v1.3.1