El RIDO
4b6c8356f5
clarify use of cache buster, avoid using regex
2024-07-09 22:35:21 +02:00
El RIDO
3c6df4573e
apply StyleCI recommendation
2024-07-09 22:21:01 +02:00
El RIDO
6261c94fc9
break unit tests if mismatch between JS files and SRI configuration array is detected
2024-07-09 22:20:08 +02:00
El RIDO
118c919663
adjust regex due to StyleCI spacing change
2024-07-09 21:51:19 +02:00
El RIDO
e051cde317
apply StyleCI recommendation
2024-07-09 21:48:40 +02:00
El RIDO
7294ea7847
Merge branch 'master' into sri-into-config
2024-07-09 21:32:42 +02:00
El RIDO
0c4e810e67
Merge branch 'shorten-non-self-url'
2024-07-09 20:33:54 +02:00
El RIDO
8b3b16be44
SRI hashes are now configurable, no longer hardcoded in templates
...
- addresses #1365
- should make upgrades easier for those using custom templates
- if the JS files got customized, the default SRI hashes can be replaced in the conf.php file, added commented section in conf.sample.php
2024-07-07 16:36:52 +02:00
El RIDO
3cba170f32
re-order stubs to the end of the file for easier maintenance
2024-07-07 15:10:17 +02:00
El RIDO
8e6e31db5c
fix test, basepath needs to be set
2024-06-30 07:45:06 +02:00
El RIDO
2c711e9d3c
prevent bypassing YOURLS proxy URL filter, allowing to shorten non-self URLs
2024-06-29 20:28:18 +02:00
El RIDO
68ccaaace0
address unit test failures due to strict typing
2024-06-04 07:27:45 +02:00
El RIDO
cebc9acce6
enable strict types in PHP
2024-06-04 07:13:55 +02:00
El RIDO
259a171067
apply StyleCI recommendation
2024-05-05 11:19:52 +02:00
El RIDO
a6058705a4
add test for new setting
2024-05-05 11:18:25 +02:00
El RIDO
5421e8e558
fix unit test
2024-05-01 21:13:24 +02:00
El RIDO
b2db26998d
remove the old keys, if they are still stored
2024-05-01 20:32:39 +02:00
El RIDO
a9f1926b96
implement chrono privacy for pastes, addresses #1290
2024-05-01 20:16:03 +02:00
El RIDO
65a626f940
inputs sanitation & remove some obsolete version checks
...
using filter_vars instead of filter_input, because our unit tests depend on manipulating global arrays, which are not used by filter_input - we would have to mock the function in the unit testing, it therefore is cleaner to use the same code paths in testing as in production
some inputs in I18n and TrafficLimiter remain unfiltered, since we already validate them by other means (IP lib and/or preg_match)
our minimum PHP version is 7.3, so we can drop the two < 5.6 fallback checks
2024-03-23 11:27:25 +01:00
Aaron Sherber
7c9cc7754f
Allow for shortenviayourls in query params
2024-03-16 16:55:49 -04:00
El RIDO
d49be80ffb
prevent regression around presence or absence of en.json
...
it gets excluded in the release archive, it's absence should not make
any difference
2023-12-18 21:49:21 +01:00
El RIDO
8c1310c334
update unit test doc & PHP 8 fixes
...
having had to re-do all of these steps on a new environment, I noticed
some inconsistencies and updated the doc:
- moved unit testing doc into common doc folder, so it is easier to find
- removed no longer supported Janitor reference
- removed note regarding generated test duration, current version takes
less than a minute
- addressed each function removal & phpunit deprecations
2023-12-03 13:40:04 +01:00
El RIDO
5c97443d1d
add basic RTL support, drop default language key
2023-09-19 07:29:00 +02:00
Sergio Giraldo
6728053ab0
test: default value for email configuration item;nit necessary to close php comment
...
::by sergio giraldo
@ 20230910T0958CEST, gpg signed
2023-09-10 09:58:04 +02:00
El RIDO
a5a888a225
Merge branch 'master' into restructure-doc
2023-08-07 20:47:55 +02:00
github-actions[bot]
2fc920394d
Merge remote-tracking branch 'origin/master' into php8
2023-06-18 15:15:00 +00:00
El RIDO
8988899c8c
apply StyleCI patch, fixes #1084
2023-06-18 12:54:22 +02:00
El RIDO
ccc5dd037f
update links, unify formats, add documentation index
2023-02-19 08:32:10 +01:00
github-actions[bot]
476aa0d3f1
Merge remote-tracking branch 'origin/master' into php8
2023-01-21 07:46:05 +00:00
El RIDO
bf7d2f05b6
expose types JSON-LD incl. configured expiration dates, resolves #1045
2023-01-15 08:04:44 +01:00
El RIDO
6d116e0cd9
Merge branch 'master' into php8
2022-12-20 18:28:19 +01:00
El RIDO
78e75d5a3f
Merge branch 'master' into improvements
2022-12-12 20:56:35 +01:00
github-actions[bot]
00cd331eaa
Merge remote-tracking branch 'origin/master' into php8
2022-12-12 19:51:50 +00:00
El RIDO
0e5002f0d5
fix CS i18n unit test
2022-12-12 20:51:06 +01:00
El RIDO
23a2c1829f
deal with annotation reported in github actions
2022-12-12 20:49:04 +01:00
El RIDO
38574f0196
return invalid data error on API instead of exception
2022-12-12 20:46:47 +01:00
El RIDO
46c0fc851c
Merge branch 'master' into php8
2022-11-17 06:04:12 +01:00
El RIDO
b3699cae8f
Merge branch 'master' into bin
2022-11-10 19:28:29 +01:00
El RIDO
b53df70227
Merge pull request #1008 from PrivateBin/jdenticons-test
...
Jdenticons size and speed test results
2022-11-10 07:28:13 +01:00
El RIDO
b2ef205411
extended script to test jdenticon ImageMagick and documented option to work without GD
2022-11-07 19:42:20 +01:00
El RIDO
c0758e7bbb
correct labels, Jdenticon renders PNG or SVG, both in pure PHP
2022-11-07 19:09:16 +01:00
El RIDO
8ede84f000
disable test when PHP < 7.2
...
It started failing after we removed the cache from the Database class,
but the behaviour is still correct (exception when something goes wrong
during comment storing).
2022-11-06 08:21:32 +01:00
El RIDO
6caf1143df
add a verification step for investigating failures in tests below PHP 7.2
2022-11-06 08:13:07 +01:00
El RIDO
669c98550c
add a version check, the third argument in getopt requires PHP >= 7.1
2022-11-06 08:05:41 +01:00
El RIDO
14075cea78
trying a different approach to get that exception 70 triggered reliably
2022-11-06 07:53:43 +01:00
El RIDO
bde7a19971
apply StyleCI patch
2022-11-06 07:43:19 +01:00
El RIDO
5195adfdb9
simple migration test
2022-11-06 07:41:05 +01:00
El RIDO
f4eed668e7
seems impacted by removal of cache, let's see if we can adjust the test
2022-11-05 10:00:12 +01:00
El RIDO
62bb68344c
move all scripts into one location
...
- standardize includes, namings
- made migrate executable
- updated ConfigurationCombinationsTest generator to work with current persistance API
2022-11-05 09:32:30 +01:00
El RIDO
a33721e3ab
Merge branch 'migrate' of https://github.com/felixjogris/PrivateBin into felixjogris-migrate
2022-11-05 08:27:40 +01:00