Documentation
¶
Overview ¶
Package parser parses and verifies user-sent post data
Index ¶
- func IsPrintable(r rune, multiline bool) error
- func IsPrintableRunes(s []rune, multiline bool) error
- func IsPrintableString(s string, multiline bool) error
- func ParseBody(body []byte, board string, thread uint64, id uint64, ip string, internal bool) (links []common.Link, com []common.Command, err error)
- func ParseName(name string) (string, string, error)
- func ParseSubject(s string) (string, error)
- func VerifyPostPassword(s string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPrintable ¶
IsPrintable checks, if r is printable. Also accepts tabs, and newlines, if multiline = true.
func IsPrintableRunes ¶
IsPrintableRunes checks, if all of s is printable. Also accepts tabs, and newlines, if multiline = true.
func IsPrintableString ¶
IsPrintableString checks, if all of s is printable. Also accepts tabs, and newlines, if multiline = true.
func ParseBody ¶
func ParseBody(body []byte, board string, thread uint64, id uint64, ip string, internal bool) ( links []common.Link, com []common.Command, err error, )
ParseBody parses the entire post text body for commands and links. internal: function was called by automated upkeep task
func ParseSubject ¶
ParseSubject verifies and trims a thread subject string
func VerifyPostPassword ¶
VerifyPostPassword verifies a post password exists does not surpass the maximum allowed length
Types ¶
This section is empty.