Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidBackupName = errors.New("invalid backup name")
ErrInvalidBackupName is returned by ValidateBackupName for any input that is not a valid RFC 1123 subdomain.
Functions ¶
func ValidateBackupName ¶ added in v1.2.0
ValidateBackupName rejects values that could traverse outside of the backup log directory when joined into a file path. backupName is taken from the HTTP request URL, so untrusted input reaches filepath.Join.
Types ¶
Click to show internal directories.
Click to hide internal directories.