diff options
Diffstat (limited to 'frontends/php/include/validate.inc.php')
| -rw-r--r-- | frontends/php/include/validate.inc.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/frontends/php/include/validate.inc.php b/frontends/php/include/validate.inc.php index 98ea357d..51587261 100644 --- a/frontends/php/include/validate.inc.php +++ b/frontends/php/include/validate.inc.php @@ -50,7 +50,11 @@ } function HEX($var=NULL) { - return "ereg(\"^[a-zA-Z0-9]{1,}$\",{".$var."})"; + return "ereg(\"^[a-zA-Z0-9]{1,}$\",{".$var."})&&"; + } + function KEY_PARAM($var=NULL) + { + return 'ereg(\'^([0-9a-zA-Z\_\.-\$ ]+)$\',{'.$var.'})&&'; } define("NOT_EMPTY","({}!='')&&"); |
