SamQuery 1.1 has been released and can be downloaded here.
Two issues have been addressed:
- The is_numeric conditions for samq_i and samq_u have been replaced with ctype_digit. is_numberic was passing non-numeric characters (such as the ‘e’ in the value 1024e10), causing encapsulation errors.
- Another condition has been added so that values beginning with 0 are encapsulated. Zip codes and other numeric strings are now handled correctly.
1 | if ( !ctype_digit(trim($value)) || (strlen(trim($value)) > 1 && substr(trim($value),0,1) == 0) ) $q.= "'"; |
if ( !ctype_digit(trim($value)) || (strlen(trim($value)) > 1 && substr(trim($value),0,1) == 0) ) $q.= "'";