[][src]Module rocket_auth_login::sanitization

Functions

filter_non_characters

Filters out separators, control codes, unicode surrogates, and a few others as well as single/double quotes, backslashes, and angle braces.

filter_non_characters_html

Filters out separators, control codes, unicode surrogates, and a few others as well as single/double quotes, backslashes, and angular braces

sanitize

Sanitize usernames to prevent xss and other vulnerabilities Use sanitize() when escaping text that may be included in a html attribute (like value="")

sanitize_password

Used to remove all non-hexadecimal characters from passwords Passwords must be only hex characters as it is expecting a hash, like sha-256 or md5 for example

sanitize_text

santize_text() is used when displaying text on a website.