Implement vidhub handlers
This commit is contained in:
@@ -23,3 +23,13 @@ func customPathEscape(input string) string {
|
||||
escapedPath = strings.ReplaceAll(escapedPath, "@", "%40")
|
||||
return escapedPath
|
||||
}
|
||||
|
||||
func customPathEscape2(input string) string {
|
||||
// Convert any XML-escaped sequences back to URL-escaped sequences
|
||||
input = strings.ReplaceAll(input, "$", "%24")
|
||||
input = strings.ReplaceAll(input, "&", "%26")
|
||||
input = strings.ReplaceAll(input, "+", "%2B")
|
||||
input = strings.ReplaceAll(input, ":", "%3A")
|
||||
input = strings.ReplaceAll(input, "@", "%40")
|
||||
return input
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user