Implement vidhub handlers

This commit is contained in:
Ben Adrian Sarmiento
2024-07-10 17:11:55 +02:00
parent f0fbc0b1ce
commit deb3359867
3 changed files with 155 additions and 1 deletions

View File

@@ -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
}