Commit Graph

2547 Commits

Author SHA1 Message Date
Thomas B
be4c12a55e Add config option for request uri field (#8738) (#8770)
This can be used to read a custom header sent by a reverse proxy to resolve the absolute path to Roundcube

* add check against the proxy_whitelist option before using a HTTP header field value for the request uri composition.
* refactor the rcmail::url() method to also work when composing fully qualified urls.
* fix/adapt tests
2022-11-26 10:23:58 +01:00
Aleksander Machniak
cc1bdf6a36 Fix regression in create_config()
On update some bool options might got changed values to false,
if not specified in the config.inc.php file.
2022-11-13 14:13:43 +01:00
Aleksander Machniak
624400d7fa Fix handling of smtp/imap port options on configuration file update (#8756) 2022-11-13 13:20:26 +01:00
Thomas Bruederli
d39235e5d9 Remove debug code again 2022-10-29 22:29:07 +02:00
Thomas Bruederli
afa509bc97 Kill session if refreshing oauth token fails (#8734) 2022-10-29 22:26:20 +02:00
Aleksander Machniak
193a136669 Fix bug where "about:blank" page could trigger "load error" (#8554)
Use javascript:false; instead
2022-08-15 10:00:00 +02:00
Aleksander Machniak
529f6a131f Small fix to the last commit 2022-08-15 09:41:19 +02:00
Aleksander Machniak
2678db2f8a Fix PHP Deprecated: Creation of dynamic property Mail_mime::$mailbody_file is deprecated 2022-08-15 09:41:11 +02:00
Aleksander Machniak
968619b3a3 Fix various "Creation of dynamic property is deprecated" warnings 2022-08-15 09:41:05 +02:00
Aleksander Machniak
8af9cf93b6 Fix various PHP 8.2 warnings 2022-08-06 09:22:32 +02:00
Aleksander Machniak
53aabf85ea Fix bug where renamed options were removed from the config on installto.sh (update.sh) run (#8643) 2022-08-01 21:01:03 +02:00
Aleksander Machniak
9140215b4e Fix bug where config creation in Installer did ignore options in the form (#8634) 2022-07-31 12:41:30 +02:00
Aleksander Machniak
a728820f4f Fix PHP8 warnings 2022-07-29 08:01:54 +02:00
Thomas Bruederli
71761b4405 Prepare release 1.6.0 2022-07-23 21:44:38 +02:00
Thomas Bruederli
6c0adda831 Update password option after refreshing oauth access token (#8436) 2022-06-26 23:05:25 +02:00
Aleksander Machniak
b043f3c228 Update changelog and tests 2022-06-25 09:49:02 +02:00
Player701
a9df4a88f7 Fix so rcmail::contact_exists() works with IDNA addresses (#8545) 2022-06-25 09:48:55 +02:00
Aleksander Machniak
a623d11883 Fix bug where a recipient address containing UTF-8 characters was ignored when sending an email (#8493, #8546) 2022-06-25 09:02:19 +02:00
Aleksander Machniak
cdc8663251 Fix fatal error (#8579) 2022-06-18 09:26:09 +02:00
Aleksander Machniak
3fd363672c bump version 2022-06-12 11:00:17 +02:00
Aleksander Machniak
9d051a3050 PHPDoc fix
[skip ci]
2022-04-27 20:22:02 +02:00
Aleksander Machniak
fa65a68389 Use ... oprator instead of func_get_args() for variadic functions 2022-04-27 19:21:00 +02:00
Github-Citizen
0e2858da97 Added link to logo image using $config['skin_logo'] (#8509)
Added ability to define a link URL for the logo image using $config['skin_logo'].
Works by defining the `logo type` for $config['skin_logo'] as `[link]` for example:

    $config['skin_logo'] = ['elastic:*[link]' => 'https://www.example.com'];
    $config['skin_logo'] = ['[link]' => 'https://www.example.com'];

Same relative path rules apply as when you define location of logo image file.
Starting with `http://` or `https://` is absolute.
Starting with a slash `/page.html` is relative to the skin directory ie `example.com/skins/elastic/page.html`
Starting without a slash `page.html` is relative to the website root directory ie `example.com/page.html`
2022-04-24 09:37:35 +02:00
Aleksander Machniak
7fdea0089d Fix bug where DSN flag state wasn't stored with a draft (#8371) 2022-04-10 11:32:40 +02:00
Aleksander Machniak
5626e26c58 Fix slow loading of long HTML content into the HTML editor (#8108) 2022-04-03 12:30:16 +02:00
Aleksander Machniak
01b7dbd1a7 Lock Installer to a set of supported config options 2022-01-23 09:11:58 +01:00
Aleksander Machniak
ab91416599 Fix mail headers injection via the subject field on mail compose (#8404) 2022-01-22 08:28:21 +01:00
Thomas Bruederli
841bead50a Refresh oauth access token in 'refresh' plugin hook (#8224) 2021-12-28 17:22:19 +01:00
Thomas Bruederli
6564b7b32c No oauth auto-redirect on imap login failures (#8370) 2021-12-28 17:22:12 +01:00
Aleksander Machniak
c331431521 Fix some PHP8 compatibility issues (#8363) 2021-12-17 18:54:37 +01:00
Aleksander Machniak
5f8bf1bb15 Fix handling of unicode/special characters in custom From input (#8357) 2021-12-12 18:14:02 +01:00
Aleksander Machniak
7b81a71393 Don't use TLS by default (#8359)
Also unify the common code with a new rcube_utils::parse_host_uri() method
2021-12-11 09:52:23 +01:00
Aleksander Machniak
893216cb29 Unified and simplified services connection options (#8310) 2021-12-07 15:07:54 +01:00
Thomas Bruederli
e94177dd63 Pass 'id_token' to 'oauth_login' plugin hook (#8214)
... and unset it afterwards
2021-12-02 22:36:28 +01:00
Thomas Bruederli
3ba68eef08 Fix expiration of short-lived oauth tokens (#8147)
Just add a small margin of 10s to consider the transfer
and processing time between oauth server and roundcube.
2021-12-02 21:25:20 +01:00
Thomas Bruederli
0c7c9e7ccb Fix relative path to assets if /index.php/foo/bar url is used (#8144) 2021-12-02 21:25:20 +01:00
Aleksander Machniak
a9f51ced21 CS fixes, update changelog 2021-11-28 08:39:12 +01:00
Philip Weir
e2a9d36f5e Add loginform_content plugin hook (#8273) 2021-11-28 08:32:50 +01:00
Aleksander Machniak
28b6351750 Fix compatibility with Referrer-Policy: "strict-origin" (#8170) 2021-11-13 10:02:24 +01:00
Aleksander Machniak
a968f52dcd Fix PHP8 warnings (#8286) 2021-11-06 09:09:19 +01:00
Aleksander Machniak
eec0d2b578 Display a generic error page on initial DB/configuration errors (#8222) 2021-10-27 14:27:56 +02:00
Aleksander Machniak
8a4eecbcb0 Don't write stats info to console.log when in CLI
If the file was created by the web server user, user executing the CLI command
might have no permissions. This leads to an error, and e.g. when installing
a plugin/skin via composer is converted to an ugly exception. We want to prevent that.
Anyway, these stats are most useful for the webmail use not for CLI commands.
2021-10-24 15:53:47 +02:00
Aleksander Machniak
38f519659c Fix some PHP8 warnings (#8239) 2021-10-21 19:52:04 +02:00
Aleksander Machniak
640e22d987 Fix PHP8 warnings 2021-10-17 11:18:14 +02:00
Aleksander Machniak
81cc8ac0e0 Purge also subfolders of Trash (and/or messages in them) on logout (#1037) 2021-10-09 16:55:28 +02:00
Aleksander Machniak
48fbf110af SQLite: Use foreign keys, require SQLite >= 3.6.19 (#8159) 2021-10-03 12:10:14 +02:00
Aleksander Machniak
e0e5626802 Bring back support for defining logo images via data-src-* attributes
Removed (unintentionally?) in 4c8ea71e3a
2021-09-30 13:46:48 +02:00
Aleksander Machniak
14522d7108 get_input_value() -> get_input_string() 2021-09-26 11:34:31 +02:00
Aleksander Machniak
0b0869e680 Add possibility to disable line-wrapping of sent mail body (#5101) 2021-09-26 10:08:31 +02:00
Aleksander Machniak
5db6dd0317 Fix handling of dark_mode_support:false setting in skins meta.json (#8186) 2021-09-25 09:59:23 +02:00