Commit Graph

40 Commits

Author SHA1 Message Date
El RIDO 348d36d6ee prefer DirectoryIterator for readability, also test jbo translation, log deletion errors 2025-11-20 09:13:15 +01:00
El RIDO f48544978b apply StyleCI suggestion 2025-11-12 07:57:30 +01:00
El RIDO f2164353c3 use realpath and validate tpl directory contents
to ensure only php files inside the tpl dir can get used as templates
2025-11-11 09:34:54 +01:00
El RIDO dae5f7fd61 partially revert #1559
Instead of automatically adding custom templates, we log an error if
that template is missing in the available templates. Still mitigates
arbitrary file inclusion, as the string is now checked against a fixed
allow list.
2025-11-10 17:31:35 +01:00
Karthik Kasturi 4a39a2ad0f refactor: added AbstractProxy base class for shortener proxies 2025-08-15 23:28:44 +01:00
Karthik Kasturi 0808052acf Added shlink integration 2025-08-15 00:07:51 +01:00
El RIDO 6d5323e351 drop legacy paste format support
remove support for ZeroBin & v1 pastes and base64 & rawinflate libraries
2025-07-05 11:06:30 +02:00
Ribas160 3d3d80c60b Remove page template 2025-07-02 17:38:13 +03:00
Ribas160 44f8cfbfb8 Fix error when a custom template is not in the default available templates list 2025-06-18 14:51:11 +03:00
parthiv-m 788146012e Fix failing tests, update button icon and text according to feedback 2024-10-17 21:56:27 -04: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 cebc9acce6 enable strict types in PHP 2024-06-04 07:13:55 +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 f6edcc1acd Merge branch 'master' into php8 2022-10-25 06:37:15 +02:00
El RIDO 2a162d075c allow unit tests to pass 2022-10-23 09:12:31 +02:00
github-actions[bot] 184b8b567d Merge remote-tracking branch 'origin/master' into php8 2022-03-28 17:03:38 +00:00
El RIDO 6c1f0dde0c set CSP also as meta tag, to deal with misconfigured webservers mangling the HTTP header 2022-03-13 18:11:13 +01:00
El RIDO 3f469f715f Merge branch 'master' into php8 2021-10-07 22:17:11 +02:00
El RIDO bb6a44ce7a remove double translation, avoid unsupported double quotes in INI file 2020-10-13 07:28:35 +02:00
El RIDO 17c3cb35c0 change tests for phpunit 9 support, breaking support with phpunit 5.6 2020-10-11 10:31:24 +02:00
El RIDO 37a620df95 return type void is required as of PHPunit 7, breaking test compatibility with PHP < 7.1 2020-10-10 12:22:20 +02:00
El RIDO 6f90df9545 updating tests by dropping PHPunit 4.6 support 2020-10-10 12:08:58 +02:00
El RIDO 4204e4b8b7 make StyleCI happy and change unit test to use a string 2020-07-03 21:00:42 +02:00
ZerooCool e61c44ef46 Make Opengraph really functional
Make Opengraph really functional

Change : #664 for #651
2020-07-01 19:47:12 +02:00
El RIDO 7c61f59dcd removing untranslated string for non-human entities, moving insecure notice to template, so it can remains translated 2019-09-19 19:14:48 +02:00
El RIDO c2e060d464 made compression configurable, fixes #38 2019-06-23 19:45:40 +02:00
El RIDO 42c2003220 made notice configurable, fixing a few CSS glitches 2019-06-17 21:40:37 +02:00
El RIDO d6f203dc4c Removed option to hide clone button on expiring pastes, since this requires reading the paste for rendering the template, which leaks information on the pastes state 2018-05-27 15:05:31 +02:00
El RIDO caf87cc6f1 Merge branch 'master' into burnafterreading-fix, regression in expired paste error 2018-04-30 20:01:38 +02:00
El RIDO fe54889b99 fixing failing unit test 2018-01-02 07:56:46 +01:00
El RIDO 81b00dd422 fixing page template, removing error messages when markdown or source are disabled in configuration, re-removing unnecessary spans 2017-03-12 14:16:08 +01:00
El RIDO d358271451 making unit tests work with spans 2017-03-02 19:44:43 +01:00
El RIDO 131e08ca33 made phpUnit and most mocha tests work again, had to remove some injected objects and added a helper method to facilitate a cache reset for the unit tests. Page template is still broken and the JS test for baseUri() fails 2017-02-25 09:35:55 +01:00
El RIDO 67f6c4eb61 turned bootstrap template variants into logic 2017-01-08 10:02:07 +01:00
El RIDO 06496f2ede updated View test to test every available template instead of just the page one 2017-01-08 08:28:05 +01:00
El RIDO a5d91298ff add an option to change the site name, solves #154 2017-01-01 16:33:11 +01:00
El RIDO 1f46823942 applying patch based on StyleCI ruleset 2016-10-29 10:24:08 +02:00
El RIDO 3d7b35aed4 PSR-2/4 fixes 2016-08-22 16:20:14 +02:00
El RIDO f72e260ee7 adding subresource integrity hashes for all javascript includes, resolves #6 2016-08-16 11:11:03 +02:00
El RIDO b45bef8388 Renamed classes for full PSR-2 compliance, some cleanup 2016-08-09 11:54:42 +02:00