MCPcopy Create free account
hub / github.com/MiloOweno/kernel-lab / filterASCII

Function filterASCII

network/wsNetwork.go:2044–2053  ·  view source on GitHub ↗

filterASCII filter out the non-ascii printable characters out of the given input string and and replace these with unprintableCharacterGlyph. It's used as a security qualifier before logging a network-provided data. The function allows only characters in the range of [32..126], which excludes all th

(unfilteredString string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 6

ServeHTTPMethod · 0.70
tryConnectMethod · 0.70
TestASCIIFilteringFunction · 0.70

Calls

no outgoing calls

Tested by 1

TestASCIIFilteringFunction · 0.56