Commit Graph
183 Commits
Author SHA1 Message Date
Rodrigo Cortés Cano cddb8c825b Escape viewlog output by default (#1134)
Render log records through the default output sanitization path and
remove the inline JavaScript interpolation of log data.

Full log data remains available through a native details element without
placing it in a script context.

Refs #1128

thanks @TrapoSAMA
2026-11-18 09:17:27 +00:00
David Goodwin 023d539fea add comment for #908 ... about sql_generate_invisible_primary_key and MySQL 8 2025-02-28 22:31:55 +00:00
David Goodwin 2b4c3dc849 upgrade moment.js to v2.30.1 - should fix issue with ReDOS (regex denial of service) - see #902 2025-02-21 09:35:22 +00:00
David Goodwin d72f1e8006 setup.php does not use the datetime widget or any funky bootstrap special effects, so we might as well remove JS from it 2023-06-20 09:22:55 +01:00
Christian Boltz 97434644ab also replace jquery 1.12.4 with 3.7.0 in setup.php
... and delete the old jquery-1.12.4.min.js
2023-06-20 09:22:55 +01:00
David Goodwin 2ed3e14f95 replace jquery 1.12.4 with 3.7.0 - see #734 2023-06-20 09:22:55 +01:00
David Goodwin 19b6f96544 mysql does not support DROP CONSTRAINT, looks like it is MariaDB only - see https://github.com/postfixadmin/postfixadmin/issues/591#issuecomment-1021340592 2022-12-06 19:05:34 +00:00
David Goodwin f297ce07c4 code format 2022-12-06 08:56:28 +00:00
David Goodwin 131302951e do not show version_number/0 on setup.php 2022-12-06 08:56:23 +00:00
David Goodwin 80a5a43cb6 update quota/quota2 username collation - see #690 2022-12-06 08:55:40 +00:00
David Goodwin b18ed591a2 bumping php-cs-fixer; formatting rules change slightly 2022-06-28 13:31:37 +01:00
David Goodwin 91af829108 update changelog; add changelog entry 2022-03-14 14:48:34 +00:00
David Goodwin ab496bda29 also fix collation on domain_admins.domain to be latin1_general_ci - see also #327 (else a domain admin cannot login)
See #595
2022-03-14 14:45:16 +00:00
David Goodwin 73dc83dbbd psalm fixes 2022-03-02 14:11:23 +00:00
David Goodwin 589e7ea403 remove unnecessary warning if sqlite is available but not the configured db backend - see https://github.com/postfixadmin/postfixadmin/issues/534 2021-09-02 21:46:19 +01:00
David Goodwin 6624a70c2d composer format time 2021-08-09 09:44:54 +01:00
David Goodwin 35de590567 Merge remote-tracking branch 'origin/postfixadmin_3.3' into postfixadmin_3.3 2021-08-09 09:41:35 +01:00
Matt Darcy a9a31620d2 removed broken link to postfixadmin.org website 2021-08-09 09:32:22 +01:00
David Goodwin 70a8a796fc probable fix for https://github.com/postfixadmin/postfixadmin/issues/516 - admins can see all domains so no fDomain parameter etc 2021-08-09 09:31:00 +01:00
David Goodwin feb5cbc7f3 see https://github.com/postfixadmin/postfixadmin/issues/523 - improve randomness when creating the PFA_token field; reported by @michaellrowley via huntr.dev. 2021-08-09 09:28:14 +01:00
Christian Boltz 37f6bf1fff Remove non-expanded (and superfluous) {$rel_path}
Reported by mirko on IRC
2021-07-04 17:20:15 +02:00
David Goodwin 73d416df33 format 2021-05-15 11:43:23 +01:00
David Goodwin aab3e945d4 improve setup.php to apply database updates and avoid deadlock with not being able to login - see https://github.com/postfixadmin/postfixadmin/issues/494 2021-05-15 11:41:08 +01:00
David Goodwin f30ae89bb4 allow vacation settings to include a time (but specify a time if one is not), this should stop us overwriting the time - see https://sourceforge.net/p/postfixadmin/discussion/676076/thread/5637ae3bc5/?limit=25#24a5 2021-05-13 16:15:45 +01:00
David Goodwin c59894d2c6 formatting! 2021-05-08 20:29:26 +01:00
David Goodwin d654651468 explode on errors when performing db upgrade; try and fix #498 by updating domain created/modified columns to something MySQL might be happier with 2021-05-08 20:15:05 +01:00
David Goodwin ed1e7f8455 see: https://github.com/postfixadmin/postfixadmin/issues/105 - log the ip address from the users/login.php page too 2021-04-22 12:54:13 +01:00
David Goodwin 63f267f0fa merge in e8f3c40442 and bbec16aac1 from master -> see #475 - add primary key column to domain_admins (id autoinc.) to help people who want to use db replication 2021-04-13 21:45:10 +01:00
David Goodwin 1c456baa56 see: #475 - add domain_admins.id pk autoincrement field 2021-04-13 21:42:54 +01:00
David Goodwin d5c14240a4 try and avoid relying on output buffering for setup.php 2021-03-15 20:28:17 +00:00
David Goodwin baea33cfef stop undefined indexes etc - see https://github.com/postfixadmin/postfixadmin/issues/470 2021-03-15 20:28:17 +00:00
David Goodwin efeb698bc0 ensure POST[domains] is not empty 2021-03-04 20:18:54 +00:00
David Goodwin dadd40a9e9 fix broadcast message to load a template that does exist - see #465 2021-03-01 09:30:42 +00:00
David Goodwin 599b39b833 fix sql for postgres bool / t 2021-02-24 21:33:42 +00:00
David Goodwin f6bbf116d8 possible fix for #461 - postgresql does not like ints for bool fields... 2021-02-24 21:15:13 +00:00
David Goodwin b2831d1241 psalm improvements 2021-02-17 21:29:18 +00:00
David Goodwin 4d505211ef reformat 2021-02-04 20:40:45 +00:00
David Goodwin 4e7d86ca07 try and improve setup.php labels/layout - see #445 2021-02-04 20:40:38 +00:00
David Goodwin 3fa1716ad7 composer format 2021-02-04 20:40:31 +00:00
David Goodwin 01d1967de0 move html around a bit, list existing admin users if setup_password confirmed 2021-02-04 20:40:20 +00:00
David Goodwin b531925859 message seems unnecessary if you have logged in 2021-02-04 20:40:12 +00:00
David Goodwin d0c3cdc4d5 try and make setup.php more useful (error detection, logging etc) 2021-02-04 20:39:31 +00:00
David Goodwin dd9b08f3a6 domain_selected -> reduce default down to '' rather than 'invalid' 2021-01-26 20:42:38 +00:00
David Goodwin c61939ce5c bootstrap 3.x does not have a .ml-x or .mr-x class, so create something for now so i can move buttons apart a little 2021-01-26 19:25:31 +00:00
David Goodwin b4a475c185 see: https://github.com/postfixadmin/postfixadmin/issues/432 - add/fix missing template variable "domain_selected" 2021-01-21 20:52:28 +00:00
David Goodwin 7f8a3d4bde also fix password-change include path - see https://github.com/postfixadmin/postfixadmin/issues/430 2021-01-21 13:57:31 +00:00
David Goodwin 481c465712 merge e7e1ce9c28 to fix PostgreSQL tests 2021-01-19 19:24:08 +00:00
David Goodwin dd86dcad30 fix forget-password (+ themeing), see #427 2021-01-19 09:19:59 +00:00
David Goodwin 391d9a0f57 rejig setup.php so it displys error messages if admin creation fails etc 2021-01-14 16:44:10 +00:00
David Goodwin 18a019690c reformat 2021-01-14 11:26:04 +00:00