David Goodwin
1b55dc96e4
security updates (smarty, phpunit)
...
move to use smarty/smarty ^5.8.4 (see https://github.com/postfixadmin/postfixadmin/security/dependabot/2 ),
use phpunit ^11.5.50
use only psalm 6
2026-08-16 10:28:44 +01:00
Rodrigo Cortés Cano
2008d06bf4
Harden language catalog repair and syntax validation ( #1114 )
...
Improve language-update.sh script, fix missing semi-colons, cover languages/*.lang in ci with parallel-lint etc.
Fixes #1112 #1113
thanks @TrapoSAMA
2026-08-12 09:07:15 +01:00
Justin Warren
08cf7a8e6e
Improve native (.deb) packaging for Debian/Ubuntu 24.04 ( #1041 )
...
thanks @jpwarren
2026-06-08 09:06:44 +01:00
Kent Riboe
2c0a06f932
Add Exec class to help refactor/reduce duplication of proc_open calls, update phpunit (see note) ( #1009 )
...
* code refactoring (adds Exec class to centralise proc_open like calls).
* bump phpunit to ^11.0, as this is the last release that supports php8.2. Note, there is not (yet?) a phpunit release for php8.2 that fixes PKSA-z3gr-8qht-p93v or PKSA-5jz8-6tcw-pbk4, so ignore them for now in composer.json
2026-04-18 10:05:35 +01:00
Kent Riboe
291609ae6f
Add phpstan, MySQL and PostgreSQL test jobs to CI ( #1005 )
...
* Add phpstan for static analysis.
* Run unit tests against MySQL and PostgreSQL databases
Thanks @knofte
2026-04-06 09:01:44 +01:00
David Goodwin
29a7c846f1
see #989 - allow newer version of spomky-labs/otphp, which removes some unnecessary dependencies and silences some PHP 8.4 warnings
2026-03-11 09:27:03 +00:00
David Goodwin
8a1f9a11af
CSRF protection - support multiple tokens ( #985 )
...
possible fix for https://github.com/postfixadmin/postfixadmin/issues/967
CSRF Token changes : rather than have one PFA_Token value in $_SESSION, store a list of them, where each value has a time stamp it was issued on. The aim is to allow the user to have multiple browser tabs open at once - and not have the last tab that loaded trample on others. Tokens expire after 1 hour.
Adds a Smarty helper function `{CSRF_Token}` which will output `<input type=hidden name=CSRF_Token value=asdf123>` or `{CSRF_Token type=url}` which outputs a literal string like 'asdf123' suitable for placing in a URL.
Adds a PHP exception handler in public/common.php, which could be used to display a more friendly error message/response (but at the moment is fairly minimal).
Removes most uses of `die()` within the codebase, and instead moves to throw an exception
2026-03-01 19:30:16 +00:00
David Goodwin
7baa5aa3a8
move minimum php version to 8.2 for master, allow newer psalm variants
2026-01-28 09:50:26 +00:00
David Goodwin
2bce2fdeda
fix #942 - composer.json -> move ext-(mysqli|sqlite) into suggest block
2026-01-28 09:50:26 +00:00
David Goodwin
d166ffae83
zf1 should be a required library, given it is required for the xmlrpc functionality
2025-09-13 20:05:32 +01:00
David Goodwin
5f9d0f5223
try and allow endroid\qrcode v5 to be installed, if the version of PHP supports it ... this reduces the number of deprecation warnings shown (but does not remove them all)
2025-06-11 21:25:09 +01:00
David Goodwin
2e2478e21e
remove duplicate php spec
2025-02-23 20:25:43 +00:00
David Goodwin
19e70326b6
bump postfixadmin/password-hashing - remove some php warnings about string params not being ?string when null is passed in etc
2025-02-23 20:23:30 +00:00
David Goodwin
f01274ec94
try relaxing composer dependencies to allow php8.2 dev support, reformat so composer format passes
2024-04-22 21:02:01 +01:00
David Goodwin
b65f7ef627
fix composer.json irc spec, move to use phar/psalm
2023-12-24 19:34:37 +00:00
David Goodwin
1dc6ebe834
i thought i moved php to >= 7.4
2023-12-23 21:30:43 +00:00
David Goodwin
4d17aa6ef9
manaul merge in of verdigado:master (see #753 ) (MFA/TOTP support)
2023-12-23 17:05:52 +00:00
David Goodwin
3b5fb0dc5b
Revert "upstream php project no longer supports PHP 8.0 or below, Wordpress requires at least 7.4 ... so perhaps claiming to support 7.2/7.3 is unnecessary"
...
This reverts commit 4e29d3e719 .
2023-11-29 22:15:22 +00:00
David Goodwin
4e29d3e719
upstream php project no longer supports PHP 8.0 or below, Wordpress requires at least 7.4 ... so perhaps claiming to support 7.2/7.3 is unnecessary
2023-11-29 22:08:29 +00:00
David Goodwin
36b59cc8b0
chat protocol update -> drop links to gitter (no one is using it); change freenode to libera.chat link in composer.json
2023-10-29 20:44:19 +00:00
David Goodwin
1988a70489
drop local copy of smarty library; use composer for installation of it; allow smarty 4.x which appears to work and also better supports php8 etc
2022-09-17 10:49:57 +01:00
David Goodwin
6c8d4ecd54
license fix in composer.json
2022-06-28 14:02:18 +01:00
David Goodwin
83993d6338
see #612 - add mbstring as a dependency
2022-03-25 16:08:06 +00:00
David Goodwin
f142e59de8
fix composer.json
2021-10-22 22:35:04 +01:00
David Goodwin
192ef87378
I know people say not to add vendor/ to git, but this is the --no-dev variant, and it should handle autoloading too ...
2021-10-22 22:29:26 +01:00
David Goodwin
9436e9e887
update version spec
2021-10-02 20:07:18 +01:00
David Goodwin
ddae23f558
Merge remote-tracking branch 'origin/master' into feature-improve-pacrypt
2021-09-29 21:15:24 +01:00
David Goodwin
49b408ec90
update to php-cs-fixer v3
2021-09-29 21:10:22 +01:00
David Goodwin
0b9b7db917
Merge remote-tracking branch 'origin/master' into feature-improve-pacrypt
2021-09-29 18:04:49 +01:00
David Goodwin
d707ab8355
iniital inclusion of the postfixadmin/password-hashing library.
2021-07-07 21:42:17 +01:00
David Goodwin
2ccda5c26a
move to use the composer autoloader
2021-07-07 21:41:59 +01:00
David Goodwin
48d4435b84
try and get php-coveralls working
2021-06-11 21:55:02 +01:00
David Goodwin
ce79972653
bump PHP version once again (require 7.2+)
2021-05-08 21:45:50 +01:00
David Goodwin
837169d755
downgrade/stop friendsofphp/php-cs-fixer moving to 3.0
2021-05-07 19:44:22 +01:00
David Goodwin
3bbc2da1f2
stop psalm caching
2021-01-18 22:15:42 +00:00
David Goodwin
efd83472b9
remove env var, bootstarp.php defaults to sqlite anyway
2020-12-23 16:55:49 +00:00
David Goodwin
c3d34f1b4d
use @php in composer.json
2020-12-23 16:44:13 +00:00
David Goodwin
06897d2234
bump psalm to v4.x
2020-11-09 21:30:32 +00:00
David Goodwin
192c797fe1
add a support block to compoer.json
2020-05-10 13:01:33 +01:00
David Goodwin
f8415eef2a
remove cache suppression
2020-04-14 21:25:25 +01:00
David Goodwin
3cd62f9f4f
update to phpunit v8, try changing coveralls library, update github action
2020-04-14 21:03:10 +01:00
David Goodwin
5e8ce2b5b0
move to php-parallel-lint/php-parallel-lint rather than abandoned jakuk-onderka/php-parallel-lint
2020-04-11 19:10:09 +01:00
David Goodwin
6c3d595c0b
coverage.xml
2020-03-02 13:25:14 +00:00
David Goodwin
5f772afe14
dev improvements
...
bump minimum php variant to 7.0
update phpunit.xml
switch to shardj/zf1-future rather than unsupported zf1
try running tests by default in github
2020-01-31 20:03:48 +00:00
David Goodwin
1ad184641d
php7.4 / psalm fixes
2020-01-31 16:30:46 +00:00
David Goodwin
c1bdfe5432
fix travis / autoloading smarty etc
2019-10-20 20:39:11 +01:00
David Goodwin
87824ef970
psalm fixes/workarounds; require PHP 5.6+
2019-10-19 20:51:05 +01:00
David Goodwin
1df7f15d40
require PHP 5.6+
2019-10-19 20:32:00 +01:00
David Goodwin
61cb429845
revert psalm; fix issues later
2019-10-17 20:04:18 +01:00
David Goodwin
174b874c56
allow psalm to update
...
phpdoc fix
2019-10-17 19:38:01 +01:00