|
bce4268a70
|
Merge branch 'master' of gitea:museum-digital/MD_STD
|
2024-09-05 14:25:14 +02:00 |
|
|
92c942aab3
|
Remove whitespaces in isbns before validating
|
2024-09-05 14:24:18 +02:00 |
|
|
6174c5454e
|
Clean em dashes from ISBNs during sanitization
|
2024-08-14 16:41:55 +02:00 |
|
|
a57036789e
|
Fix implicit array creation
|
2024-07-12 02:56:27 +02:00 |
|
|
fc727932ca
|
Make function in MD_STD_HTML_TEST final
|
2024-07-12 02:54:26 +02:00 |
|
|
40d83ce5b0
|
Add class MD_STD_HTML_TEST for validating HTML outputs
|
2024-07-12 02:31:42 +02:00 |
|
|
cbc66c4140
|
Improve test coverage for MD_STD_SEC
|
2024-07-11 15:32:50 +02:00 |
|
|
11faeaa7e7
|
Improve test coverage
|
2024-07-11 14:53:05 +02:00 |
|
|
fb008e1b59
|
Add function for ensuring all input in an array is strings
|
2024-07-09 16:43:21 +02:00 |
|
|
cd46a3ec73
|
Add wrapper around file_put_contents
|
2024-06-24 16:53:01 +02:00 |
|
|
94dfa17290
|
Fix code smells
|
2024-06-11 21:57:56 +02:00 |
|
|
d4918dd893
|
Handle dates outside of strtotime()'s range in date_to_int, int_to_date
Close #9
|
2024-05-05 00:48:04 +02:00 |
|
|
fb1372d193
|
Use MD_STD::strtotime() over strtotime()
|
2024-05-04 01:19:52 +02:00 |
|
|
63ac1b296e
|
Add functions for transferring dates to ints and vice versa
|
2024-05-03 17:42:32 +02:00 |
|
|
8c1050f40a
|
Add wrapper around MD_STD::strtotime() that will throw an expected
exception
|
2024-01-30 01:21:51 +01:00 |
|
|
2bea372973
|
Use phpstan-specific comments for main sanitization + validation
functions
|
2024-01-14 22:18:48 +01:00 |
|
|
69e6850c16
|
Write prettier error message in MDFailedToCreateDirectory
|
2023-11-27 01:31:16 +01:00 |
|
|
8006695093
|
Throw a specific exception if MD_STD::mkdir fails
Close #8
|
2023-11-27 01:30:43 +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 |
|
|
d83ed2d0eb
|
Improve indentation in phpunit
|
2023-11-07 22:52:23 +01:00 |
|
|
2c58e0554b
|
Improve coverage of MD_STD_IN
|
2023-11-07 22:50:18 +01:00 |
|
|
1f2f63c9af
|
Set beStrictAboutOutputDuringTests=true in phpunit.xml
|
2023-11-06 23:49:27 +01:00 |
|
|
c9dce8f782
|
Annotate the available tests as @small
|
2023-11-06 23:26:21 +01:00 |
|
|
0c0d059dd3
|
Add testsuite for /tests directory in phpunit.xml
|
2023-11-06 23:03:35 +01:00 |
|
|
5d80f82040
|
Remove printer class / use testdox by default in phpunit setup
|
2023-11-06 23:02:44 +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 |
|
|
2176e7312b
|
Remove MD_STD_CACHE open_redis_default()
|
2023-10-05 16:58:48 +02:00 |
|
|
3ece870f0c
|
Require externally set up redis connection for caching + serving full pages via
redis
|
2023-10-05 16:45:35 +02:00 |
|
|
b143845aea
|
Fix type-safety issues around curl in new checking HTTP status function
|
2023-08-18 15:12:45 +02:00 |
|
|
88458df949
|
Add general abstract classes for tests, starting with test classes for
RSS feeds
|
2023-08-18 15:09:58 +02:00 |
|
|
9c49afe416
|
Improve comment on return parameter
|
2023-08-16 20:09:22 +02:00 |
|
|
6426947e60
|
Add function for getting user language without using cookies
|
2023-08-14 15:15:41 +02:00 |
|
|
a8599667c9
|
Use is_file() over file_exists() in MD_STD::ensure_file()
|
2023-07-21 16:09:43 +02:00 |
|
|
bb36388e7e
|
Add README
|
2023-06-24 02:04:03 +02:00 |
|
|
66a5b77b51
|
Add function unlink_if_exists
|
2023-04-14 14:13:09 +02:00 |
|
|
23232f4e6a
|
Remove superfluous variable assignments
|
2022-09-15 21:38:41 +02:00 |
|
|
c38f0146dc
|
Allow passing existing redis connections to MD_STD_CACHE
|
2022-09-04 23:27:04 +02:00 |
|
|
bbac217aa0
|
Reduce factors for setting anti-brute force delays
|
2022-08-14 18:12:33 +02:00 |
|
|
ced5a65122
|
Fix variable misnomers in MD_STD_SEC
|
2022-08-14 16:17:03 +02:00 |
|
|
52aeedd31e
|
Set a cap to maximum delay in preventing brute force attacks
This is necessary because PHP-FPM fails if sleep / usleep runs beyond
the maximum execution time of php.ini, leading to whole vhosts falling
over.
|
2022-08-14 13:08:40 +02:00 |
|
|
f477401114
|
Add functions for validating longitudes and latitutdes
|
2022-07-28 11:01:30 +02:00 |
|
|
c362aa1283
|
Remove superfluous checks for empty realnames
|
2022-03-31 14:38:02 +02:00 |
|
|
65aaea4097
|
Check links for using an accepted scheme during validation (http, https,
ftp)
|
2022-03-30 13:03:04 +02:00 |
|
|
7c02bbb8ad
|
Fix function comment for setting content-security-policies
|
2022-03-29 17:51:21 +02:00 |
|
|
6a7b8bd8fd
|
Disable setting language cookie for curl or clients without user agents
|
2022-03-26 16:49:10 +01:00 |
|
|
8d7b270f6f
|
Allow setting worker-src in MD_STD_SEC
|
2022-03-24 23:25:05 +01:00 |
|