Commit Graph

24 Commits

Author SHA1 Message Date
2bea372973
Use phpstan-specific comments for main sanitization + validation
functions
2024-01-14 22:18:48 +01:00
db31822a3f
Use empty() over === false to also return error in case of empty strings 2023-11-10 16:17:20 +01:00
0fb368b96d
Extend MD_STD_IN::sanitize_url to automatically set protocol / scheme
names in lowercase
2023-11-09 16:40:28 +01:00
66e704de47
Extend tests for MD_STD_IN considerably, fix some edge cases 2023-11-08 21:24:23 +01:00
a03f072a69
Add function for validating ZIP codes (somewhat) 2023-11-08 02:18:34 +01:00
2c58e0554b
Improve coverage of MD_STD_IN 2023-11-07 22:50:18 +01:00
5c2c1a47cc
Fully ensure all URL components are present for rewriting 2023-11-05 23:37:28 +01:00
ae12cfdf0f
Add tests for MD_STD_IN::sanitize_url() and ensure it supports rewriting
unencoded cyrillic inputs

Close #7
2023-11-05 23:29:14 +01:00
9c49afe416
Improve comment on return parameter 2023-08-16 20:09:22 +02:00
f477401114
Add functions for validating longitudes and latitutdes 2022-07-28 11:01:30 +02:00
65aaea4097
Check links for using an accepted scheme during validation (http, https,
ftp)
2022-03-30 13:03:04 +02:00
9507387c8a
Fix bug in validating ISBN 13s 2022-03-11 23:31:41 +01:00
589161219f
Require numbers OR special chars for passwords, not AND 2022-03-09 00:16:55 +01:00
e18b649250
Return array of error messages on password validate 2022-03-08 21:23:45 +01:00
5bb863ffc9
Add function validate_password 2022-03-08 20:12:54 +01:00
321609306d
Use strip tags in sanitize_text over deprecated FILTER_SANITIZE_STRING 2022-02-02 02:18:33 +01:00
3f37dd7a9e
Improve phpdoc types, type-safety 2021-11-29 22:30:28 +01:00
e19e0c875c
Add function for batch validating ids in an array 2021-11-03 02:41:22 +01:00
143a4680e2
Add validation function for phone numbers 2021-09-25 21:56:01 +02:00
a6ebab3e03
Remove superfluous parentheses 2021-09-17 15:52:37 +02:00
d53303e617
Add option to pass acceptable mime types to
MD_STD_IN::move_uploaded_file
2021-07-20 02:04:55 +02:00
6adf0ee0a2
Add wrapper around move_uploaded_file 2021-07-20 01:26:31 +02:00
dbbdf4f230
Add function to ensure an input string is UTF-8 encoded 2021-07-01 15:34:46 +02:00
2c1f6a0490
Move scripts to /src subdirectory 2021-03-09 20:09:11 +01:00