module CrystalGauntlet::Clean
Overview
utilities to prevent malicious user input
Extended Modules
Defined in:
lib/clean.crInstance Method Summary
-
#clean_b64(str)
for b64 inputs; thoroughly cleans them
-
#clean_basic(str)
only allow "basic" characters (roughly printable ascii, excluding format-breaking chars)
-
#clean_char(str)
only allow alphanumeric chars & space
-
#clean_number(str)
only allows numbers
-
#clean_special(str : String)
for descriptions & similar
Instance Method Detail
def clean_basic(str)
#
only allow "basic" characters (roughly printable ascii, excluding format-breaking chars)