Commit Graph

252 Commits

Author SHA1 Message Date
Aleksander Machniak
c96951c480 Fix test 2021-08-30 21:25:01 +02:00
Aleksander Machniak
e6a8bb28a4 Investigate test issue 2021-08-30 21:19:51 +02:00
Aleksander Machniak
1de93a8f46 Add tests for spellchecker enchant driver 2021-08-30 19:41:55 +02:00
Aleksander Machniak
cd2e531092 Fix spellchecker tests (again) 2021-08-29 17:54:42 +02:00
Aleksander Machniak
81ed20e829 Fix spellchecker tests 2021-08-29 17:47:23 +02:00
Aleksander Machniak
00521bf617 Switch spellcheck tests from googie to pspell 2021-08-29 17:25:30 +02:00
Aleksander Machniak
20533a1d28 GA: Exclude tests connecting to spell.roundcube.net 2021-08-26 08:54:21 +02:00
Aleksander Machniak
b60e6188f3 Fix so addr-spec with missing closing angle bracket can be parsed (#8164) 2021-08-15 10:51:24 +02:00
Nico Antkowiak
12c7ea581d Add option to control links handling behavior on html to text conversion (#6485)
Co-authored-by: NAN <antkowiak@dionera.com>
2021-08-04 10:37:14 +02:00
Aleksander Machniak
6f435ecb52 Fix fatal error/warning on invalid input to user parameter (#8152)
Added a new utility method: rcube_utils::get_input_string()
2021-08-01 10:31:09 +02:00
Aleksander Machniak
0d4a395464 Fix PHP 8.1 deprecation warnings 2021-07-31 07:53:14 +02:00
Aleksander Machniak
89e54718ca Migration to PHPUnit v9 2021-07-25 11:07:56 +02:00
Aleksander Machniak
a832a6943e Fix converting >1MB of HTML content into plain text (#8137) 2021-07-16 12:37:44 +02:00
Aleksander Machniak
25214753cb Support displaying RTF content (including encapsulated HTML) from a TNEF attachment 2021-07-11 09:31:09 +02:00
Aleksander Machniak
655e7c7159 Add RFC2231 support to rcube_mime_decode (#7390) 2021-06-05 08:46:16 +02:00
Aleksander Machniak
4b5e9c10f9 Fix handling of multiple link references with the same index in plain text message (#8021)
Second attempt that should work on all supported PHP versions
2021-04-25 10:57:17 +02:00
Thomas P
0044673e11 Add config options for subject prefixes (#7929) 2021-04-25 09:41:08 +02:00
Aleksander Machniak
dc89e18a0f Revert "Fix handling of multiple link references with the same index in plain text message (#8021)"
This reverts commit 2be7e1cb61.

The code used a PHP>=7.4 feature.
2021-04-25 09:15:05 +02:00
Aleksander Machniak
2be7e1cb61 Fix handling of multiple link references with the same index in plain text message (#8021) 2021-04-25 09:05:51 +02:00
Josh Soref
203f456620 Spelling (#8001) 2021-04-18 08:43:18 +02:00
Aleksander Machniak
2f42fa2eaf Fix HTML5 parser issue with a messy HTML code from Outlook (#7356) 2021-04-05 10:39:00 +02:00
Aleksander Machniak
f74bc3fd80 Fix bug where invalid non-unicode characters in JSON output could make the UI unresponsive (#7955) 2021-03-27 09:19:18 +01:00
Aleksander Machniak
0df8e97476 Small code improvement + tests 2021-03-22 16:11:38 +01:00
Aleksander Machniak
12562a7b0e Remove redundant code from rcube_charset::clean() 2021-03-22 08:36:19 +01:00
Aleksander Machniak
b913d2fbde Add IDN homograph attack (spoofing) detection [CVE-2019-15237] (#6891) 2021-03-21 09:25:57 +01:00
Aleksander Machniak
5ec509f87e FIX PHP8 fatal error and some warnings (#7931) 2021-03-10 18:24:18 +01:00
Aleksander Machniak
5b8a3e77cc Fix test regression 2021-02-24 15:45:36 +01:00
Aleksander Machniak
9f19b931e3 Fix cross-site scripting (XSS) via HTML messages with malicious CSS content
and improve css parsing code.

Thanks to Mateusz Szymaniec (CERT Polska) for reporting the issue.
2021-02-08 13:42:12 +01:00
Aleksander Machniak
79b5343563 Fix handling of address groups in email headers by ignoring their names (#7663) 2021-02-06 16:41:50 +01:00
Aleksander Machniak
d258f845ab Fix PHP8 Fatal error: Uncaught ValueError: mb_convert_encoding() (#7850)
Also, bring back iconv() fallback, it supports much more charsets than mbstring.
2021-01-30 15:51:23 +01:00
johndoh
1eebfd723b Improve detection of external urls for redirect (#7823) 2021-01-23 10:15:09 +01:00
Aleksander Machniak
39b3c0049e Fix cross-site scripting (XSS) via HTML or Plain text messages with malicious content [CVE-2020-35730]
Credits to Alex Birnberg <birnbergalex@gmail.com>
2020-12-27 18:27:42 +01:00
Aleksander Machniak
5aa0d09def Add array_first() helper, fix some code issues 2020-12-20 09:44:17 +01:00
johndoh
9e739faac5 Return 204 rather than 404 on missing contact photo (#7778)
* return 204 rather than 404 on missing contact photo
* a little code cleanup
* don't use blank.gif as placeholder, use data: uri instead
2020-12-19 10:10:54 +01:00
Aleksander Machniak
7c53300990 PHP8 fixes, CS fixes, short array syntax, tests 2020-12-08 21:56:41 +01:00
Aleksander Machniak
f4ed1024dc PHP8 fixes, CS fixes, short array syntax, tests 2020-12-02 20:15:00 +01:00
Aleksander Machniak
8110ed9a9d PHP8 fixes, CS fixes, short array syntax, tests 2020-11-30 20:37:50 +01:00
Aleksander Machniak
66ca4f0f72 CS fixes, PHP8 fixes, short array syntax, tests 2020-11-30 14:03:11 +01:00
Aleksander Machniak
85cfacc882 PHP8 fixes, CS fixes, short array syntax, tests 2020-11-29 12:20:51 +01:00
Aleksander Machniak
7e5301f636 CS fixes, short array syntax, PHP8 fixes, tests 2020-11-28 18:52:36 +01:00
Aleksander Machniak
007f9b81cf Lower SQLite version requirement 2020-11-28 16:05:19 +01:00
Aleksander Machniak
066faa1485 CS fixes, short array syntax, PHP8 fixes, tests
also fixed listing of table columns on SQLite database
2020-11-28 10:06:41 +01:00
Aleksander Machniak
37d75d96a3 Short array syntax, CS fixes 2020-11-27 19:51:33 +01:00
Aleksander Machniak
c98059e43d Short array syntax, CS fixes, tests 2020-11-26 20:34:35 +01:00
Aleksander Machniak
8b16a7dfe7 More tests 2020-11-08 11:06:42 +01:00
Aleksander Machniak
602c4a649d Un-skip the rcube_ldap test, fix some PHP8 compat. bugs 2020-11-02 10:23:10 +01:00
Aleksander Machniak
318f91417f Add rcube_utils::explode() 2020-11-02 09:02:38 +01:00
Aleksander Machniak
545a1569f1 Steps -> Actions refactoring (#7688)
* Move action handling code to rcmail class
* Add rcmail_action class
* Add action aliases
* Get rid of $OUTPUT global
* Move some methods from rcmail to rcmail_action
* PHP8 compat. fixes
* Add framework for testing actions
* Fix obvious code mistakes
2020-11-01 11:25:38 +01:00
Aleksander Machniak
bde383d051 PHP8: Fix various issues
for now only these I found by running our unit tests, there will be much more
2020-10-11 10:32:41 +02:00
Aleksander Machniak
d81b8447fb Fix empty output from HTML5 parser when content contains XML tag (#7624) 2020-09-23 15:15:02 +02:00