Commit Graph

32 Commits

Author SHA1 Message Date
43bc39d425
Add function createTextSnippet() for shortening text to an expected
length

Close #1
2020-10-23 16:13:02 +02:00
711bd49048
Add function minizeHTMLString() 2020-10-21 21:16:18 +02:00
087b4a128e Add validation function for ISBN 2020-09-30 00:58:58 +02:00
0bfd6c3765 Add removal of duplicate spaces in input strings in MD_STD_IN 2020-09-09 00:29:13 +02:00
49ab75afe8 Add new function MD_STD_IN::sanitize_float 2020-09-05 00:19:32 +02:00
27b70a88c9 Use firefox for user agent in MD_STD::runCurl() 2020-09-04 18:09:56 +02:00
b16a6762e4 Improve sanitizers for mails, urls 2020-09-04 01:37:49 +02:00
f478728ab9 Improve sanitizing functions for mail and url 2020-09-04 01:19:00 +02:00
55db406401 Add wrappers for sanitizing URLs and mail addresses 2020-09-04 00:46:45 +02:00
6fe367ead7 Add final keyword to both classes 2020-08-29 17:22:16 +02:00
7d4a740f8f Use strict in_array() calls 2020-08-27 17:16:48 +02:00
b39f26a3f7 Specify global namespace for more calls to build-in functions 2020-08-22 23:57:37 +02:00
25b3138a26 Add type-safe wrapper around MD_STD 2020-08-22 17:00:21 +02:00
bac86627e2 Correct check against empty value in MD_STD_IN 2020-08-22 12:13:08 +02:00
566590135b Add function sanitize_id_or_zero for validating and sanitizing input
integers that may hold an ID or a 0

Example use case: Event parts in musdb.
2020-08-21 13:58:24 +02:00
bdee1e9aee Add wrapper around openssl_random_pseudo_bytes() 2020-08-20 14:56:36 +02:00
7b1dc582ed Use global namespace for generic call to \strtotime in MD_STD::strtotime 2020-08-20 14:13:49 +02:00
d4b2986809 Fix over-sanitization for texts in MD_STD_IN 2020-08-20 11:08:27 +02:00
0fece80ed0 Add functionality to restrict allowed values taken from get via
MD_STD_IN
2020-08-19 15:32:15 +02:00
17d1b6e88b Add class MD_STD_IN for input parsing and sanitization 2020-08-19 14:55:38 +02:00
b8d8be54b9 Use integer for first param of human_filesize 2020-08-11 08:10:23 +02:00
08c9582210 Add lang_getfrombrowser and human_filesize
These functions are used in almost all md projects at one point or
another.
2020-08-10 19:55:40 +02:00
a09eba6b84 Add type-safe wrapper around strtotime, removing ability for second
param.
2020-08-10 16:59:06 +02:00
523cdaa7f4 Add type-safe wrapper around preg_replace for replacing in strings 2020-08-09 00:59:41 +02:00
00fcc997ce Exclude .git in MD_STD::scandir 2020-08-07 18:32:44 +02:00
8513458904 Add type-safe wrapper around json_encode 2020-08-05 17:02:03 +02:00
c73d279ff0 Add wrapper around running curl (runCurl) 2020-08-05 16:36:02 +02:00
790e332502 Add type-safe wrapper around MD_STD 2020-08-05 15:31:29 +02:00
079786e42d Add type-safe wrapper around realpath 2020-08-05 14:01:26 +02:00
f44fd251e1 Add functions startsWithAny, startsWith 2020-08-05 09:06:28 +02:00
1c68b4fa98 Fix wrong filename 2020-07-26 15:13:03 +02:00
481233efad Initial 2020-07-26 14:52:41 +02:00