diff --git a/WEB-INF/lib/common.lib.php b/WEB-INF/lib/common.lib.php index 4bc91296..79aba106 100644 --- a/WEB-INF/lib/common.lib.php +++ b/WEB-INF/lib/common.lib.php @@ -126,7 +126,7 @@ function isTrue($val) } // ttValidString is used to check user input to validate a string. -function ttValidString($val, $emptyValid = false) +function ttValidString($val, $emptyValid = false, $maxChars = 0) { if (is_null($val)) { return $emptyValid ? true : false; @@ -140,6 +140,10 @@ function ttValidString($val, $emptyValid = false) if (stristr($val, '