sanitize

package
v0.103.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func String

func String(unsanitized string) string

String removes control characters from String parameter. This addresses CWE-117: https://cwe.mitre.org/data/definitions/117.html

func URL

func URL(unsanitized *url.URL) string

URL removes control characters from the URL parameter. This addresses CWE-117: https://cwe.mitre.org/data/definitions/117.html

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL