Commit Graph

2657 Commits

Author SHA1 Message Date
Aleksander Machniak
63f63e8f4d Fix regression in OAuth request URI caused by use of REQUEST_URI instead of SCRIPT_NAME as a default (#8878) 2023-01-26 18:14:36 +01:00
Aleksander Machniak
6251d38ecd Fix PHP warning 2023-01-08 11:45:44 +01:00
Aleksander Machniak
2d00d18e6c Rename 'request_uri_field' to 'request_path' and allow a path in it (#8738, #8770) 2023-01-08 09:54:19 +01:00
Thomas B
dec93dc1b7 Update vendor dir from installto.sh if untouched (#8642) (#8840)
* installto.sh checks for a marker indicating that composer was not run/used.
* update.sh tries to find and run composer
2023-01-05 21:30:51 +01:00
Oliver Rahner
f7b8b14df8 Check if shell_exec() exists and work around if it doesn't (#8814) 2022-12-31 10:31:22 +01:00
Aleksander Machniak
c65763f59b Make rcmail::format_date() to work with DateTimeImmutable 2022-12-29 14:14:54 +01:00
Aleksander Machniak
631dc5a839 Fix get_address_book() issue for addressbooks that have a string identifier starting with a digit 2022-12-01 10:00:16 +01:00
Thomas B
409aee8b3c 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-23 21:05:00 +01:00
Aleksander Machniak
cb1951048c 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:11:52 +01:00
Aleksander Machniak
e6ed5ae19e Fix handling of smtp/imap port options on configuration file update (#8756) 2022-11-13 13:19:45 +01:00
Vitosha Labs
c08e59033f Use json_decode instead of GuzzleHttp\json_decode (#8773) 2022-11-11 11:40:31 +01:00
Thomas Bruederli
10f00d3946 Remove debug code again 2022-10-29 22:28:38 +02:00
Thomas Bruederli
6b2e39d132 Kill session if refreshing oauth token fails (#8734) 2022-10-29 22:24:09 +02:00
Aleksander Machniak
80404a8674 Store uploads metadata in a separate sql database table instead of a session (#8415) 2022-10-09 11:35:14 +02:00
Aleksander Machniak
019801a430 Removed support for MS SQL Server and Oracle (#7854) 2022-09-11 11:01:03 +02:00
Aleksander Machniak
3b16cbf371 Fix bug where "about:blank" page could trigger "load error" (#8554)
Use javascript:false; instead
2022-08-15 09:58:56 +02:00
Aleksander Machniak
cdb98e4501 Small fix to the last commit 2022-08-14 17:37:44 +02:00
Aleksander Machniak
0a3a332866 Fix PHP Deprecated: Creation of dynamic property Mail_mime::$mailbody_file is deprecated 2022-08-14 16:02:56 +02:00
Aleksander Machniak
825bcf5af7 Fix various "Creation of dynamic property is deprecated" warnings 2022-08-14 15:27:09 +02:00
Jorge López Pérez
e808fba4f8 Initialize HTTP client using get_http_client() for OAuth requests (#8666)
* Initialize HTTP client using get_http_client() for OAuth requests
* Add new oauth_timeout setting
2022-08-09 19:13:58 +02:00
Aleksander Machniak
aac9b696b8 Fix various PHP 8.2 warnings 2022-08-06 09:22:12 +02:00
Aleksander Machniak
44f0d6cbc4 Fix bug where renamed options were removed from the config on installto.sh (update.sh) run (#8643) 2022-08-01 21:00:35 +02:00
Aleksander Machniak
01e42cfe57 Fix bug where config creation in Installer did ignore options in the form (#8634) 2022-07-31 12:41:05 +02:00
Aleksander Machniak
afa1221783 Fix PHP8 warnings 2022-07-24 12:45:50 +02:00
Thomas Bruederli
bda54eb937 Update password option after refreshing oauth access token (#8436) 2022-06-26 23:01:36 +02:00
Aleksander Machniak
f8b2afac0c Update changelog and tests 2022-06-25 09:48:23 +02:00
Player701
82fec17d34 Fix so rcmail::contact_exists() works with IDNA addresses (#8545) 2022-06-25 09:21:17 +02:00
Aleksander Machniak
83bc6289f5 Fix bug where a recipient address containing UTF-8 characters was ignored when sending an email (#8493, #8546) 2022-06-25 09:01:09 +02:00
Aleksander Machniak
42f9cdceba Master is 1.7-git 2022-06-23 19:02:23 +02:00
Aleksander Machniak
6d897963fe Fix fatal error (#8579) 2022-06-18 09:24:27 +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