MantisBT: master b9172717

Author Committer Branch Timestamp Parent
dregad dregad master 2025-03-01 18:00 master 8ddfeea2
Affected Issues  0035525: gpc_get_int() should not remove spaces in the middle of the string
Changeset

gpc_get_int() don't remove spaces in middle of string

Keep using preg_match() instead of calling filter_var() as the latter's
interpretation of what an integer is is too strict for our purposes
(e.g. 01 is not considered as an integer).

Code cleanup: remove unnecessary capturing group in the number
validation regex.

Fixes 0035525

mod - core/gpc_api.php Diff File