MCPcopy Index your code
hub / github.com/devploit/nomore403 / doubleEncode

Function doubleEncode

cmd/requester.go:2143–2146  ·  view source on GitHub ↗

doubleEncode returns the double-URL-encoded form of a character. e.g., 's' (0x73) → %73 → %2573

(c rune)

Source from the content-addressed store, hash-verified

2141// doubleEncode returns the double-URL-encoded form of a character.
2142// e.g., 's' (0x73) → %73 → %2573
2143func doubleEncode(c rune) string {
2144 singleEncoded := fmt.Sprintf("%%%X", c)
2145 return url.QueryEscape(singleEncoded)
2146}
2147
2148// requestDoubleEncoding makes HTTP requests doing a double URL encode of the path.
2149// It tests three strategies:

Callers 1

requestDoubleEncodingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected