fix escape
This commit is contained in:
@@ -1,2 +1,12 @@
|
||||
package utils
|
||||
|
||||
import "strings"
|
||||
|
||||
func EscapePath(path string) string {
|
||||
// escape %
|
||||
escapedPath := strings.ReplaceAll(path, "%", "%25")
|
||||
|
||||
// add others
|
||||
|
||||
return escapedPath
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user