diff options
| author | Rose Hogenson <rosehogenson@posteo.net> | 2025-04-20 08:12:59 -0700 |
|---|---|---|
| committer | Rose Hogenson <rosehogenson@posteo.net> | 2025-04-20 08:12:59 -0700 |
| commit | 2048a8ed6b6457977242267ff700e4859176dad4 (patch) | |
| tree | 983e210319b54d8aeae6545ceec6e42b56b7bc50 | |
| parent | 9159eca507577b05c2b6124ecbc51d4720e64c96 (diff) | |
| download | trash-2048a8ed6b6457977242267ff700e4859176dad4.tar.zst | |
Use PathEscape instead of QueryEscape
| -rw-r--r-- | trash.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |
