fix escape

This commit is contained in:
Mukhtar Akere
2025-04-17 16:31:39 +01:00
parent 1983e27124
commit 8c78da3f69
5 changed files with 18 additions and 13 deletions

View File

@@ -1,2 +1,12 @@
package utils
import "strings"
func EscapePath(path string) string {
// escape %
escapedPath := strings.ReplaceAll(path, "%", "%25")
// add others
return escapedPath
}