Commit Graph

366 Commits (d3a5db394cb3e028ea8d4ce44ede15c37d8ed445)

Author SHA1 Message Date
Phil Jaenke d3a5db394c
Make pInvalidDomainDNS more forgiving
Make the pInvalidDomainDNS check more forgiving to accommodate newly created domains which also do not have an A record for the domain (which is generally not a best practice) or MX configured yet.
This adds a check for an `NS` record; if the NS exists, then the domain is valid and can be assumed to have just not been configured to receive email yet.
6 years ago
David Goodwin dec4b38f35 improve langauge checks (remove unnecessary is_string check) 6 years ago
Christian Boltz 531a52e053
remove superfluous code in check_language()
dd52a98d43 added honoring POST['lang'] and
COOKIE['lang'] even if $_SERVER['HTTP_ACCEPT_LANGUAGE'] is not set.
This also means we can drop the now-duplicate check in the code section
handling $_SERVER['HTTP_ACCEPT_LANGUAGE'].
6 years ago
David Goodwin 1c0fd02323 composer format time 6 years ago
David Goodwin 3b9d8f867e merge sha512.b64 encrypt support - see https://github.com/postfixadmin/postfixadmin/issues/58 6 years ago
David Goodwin dd52a98d43 prefer POST/COOKIE lang over browser http header - see: https://github.com/postfixadmin/postfixadmin/issues/28 6 years ago
David Goodwin 1ecada175c and support whether we verify ssl certs; default to true 6 years ago
David Goodwin 4cbd82d750 remove empty settings so not all SSL things are required for using SSL with MySQL 6 years ago
David Goodwin 1ad184641d php7.4 / psalm fixes 6 years ago
David Goodwin c0bd763c53 another replacement of string{x} with string[x] 6 years ago
David Goodwin aa37ab57e6 stop using { } for string character access (use [ ] instead) - see https://www.php.net/manual/en/language.types.string.php#language.types.string.substr 6 years ago
David Goodwin 79c2e77a00 should fix: https://github.com/postfixadmin/postfixadmin/issues/323 6 years ago
David Goodwin d6bbecaf45 change row to r everywhere; see : https://sourceforge.net/p/postfixadmin/discussion/676076/thread/616c1d25/?limit=25#7da0 - hopefully removing "row" which might be a reserved keyword for some databases etc 6 years ago
David Goodwin bcae218cbb composer format time 6 years ago
David Goodwin 87824ef970 psalm fixes/workarounds; require PHP 5.6+ 6 years ago
David Goodwin 174b874c56 allow psalm to update
phpdoc fix
6 years ago
David Goodwin 9526e68e3e perhaps this will help https://github.com/postfixadmin/postfixadmin/issues/305 6 years ago
David Goodwin 2742849e7b reformat 6 years ago
David Goodwin 7965a83aff tighten psalm checks even more 6 years ago
David Goodwin 29d990f5f4 fix page browser test for sqlite; see #87 and #161 6 years ago
David Goodwin f36ba9b4c2 format 6 years ago
David Goodwin 4081267cb2 fix phpdoc; throw exception on error within phpunit - helps testing 6 years ago
David Goodwin f7c7e35b34 fix formatting 6 years ago
David Goodwin 17a50c51f1 drop some dies; use Exception and catch after dispatch() - see #197 6 years ago
David Goodwin 6a89b9a363 composer format 7 years ago
David Goodwin 7b18d0386c
Merge pull request #287 from gabrielfin/fix-pagination
Fix pagination
7 years ago
Felix Ableitner 8ba1cf20a7 use config::bool instead of read_string 7 years ago
Unknown 88587f4cd3 Fix pagination 7 years ago
Felix Ableitner a46245eecc Add config option for TLS 7 years ago
Felix Ableitner 61ede42800 Send emails with TLS 7 years ago
Felix Ableitner 600248e955 Add option to use smtp password when sending admin emails (fixes #272) 7 years ago
Christian Boltz 55858bf3a0
Fix table names in gen_show_status()
... by using table_by_key() instead of reading $CONF directly.
Otherwise, $CONF['database_prefix'] gets ignored and the query tries to
use a wrong table name.

This fixes a bug introduced in d809e0fbf7
7 years ago
David Goodwin 8e2e4eb189 run: composer format 7 years ago
David Goodwin cc19870923 drop function: db_connect_with_errors(); just throw from db_connect() if something goes wrong 7 years ago
Felix Ableitner 5d0a587fe7 Dont swallow database connection exceptions 7 years ago
David Goodwin ad858592f4 remove password_expiry logic from generic db_update function; the various *Handler classes should fix the password_expiry field already and this just breaks PgSQL; see #264 7 years ago
Roland Singer 23a7f1bfda allow TLD with 1 char 7 years ago
David Goodwin 9024dddf46 move password_expiration code into the MailboxHandler. 7 years ago
David Goodwin b8ee437169 add throw_exceptions parameter to db_update and db_insert. 7 years ago
Andreas Oberritter 000416c401 pacrypt_dovecot: Don't blacklist SCRAM-SHA-1
Actually it doesn't include the username at all. Fixes commit f444de4.
7 years ago
David Goodwin 9ccf5250cd remove config dump 7 years ago
David Goodwin 496657aa5d echo something helpful on db error when testing 7 years ago
David Goodwin 2e87464fc8 initial attempt at connecting to mysql socket file through pdo 7 years ago
David Goodwin 9cc04df973 move the password expiry date to be php generated so it works fine on all databases 7 years ago
David Goodwin 8632cbd1a9 improve documentation around the various crypt functions 7 years ago
David Goodwin 17a420152c use pdo/prepared statement for list-virtual + page browser 7 years ago
David Goodwin a05f87723f reformat 7 years ago
David Goodwin 28870e4b45 explode if there is no db connection made 7 years ago
David Goodwin b4564958a1 phpdoc; touch sqlite file before trying to use it in tests 7 years ago
8ctopus 4f2dab357c the directory the SQLite database is in must be writeable 7 years ago