Aleksander Machniak
0d4a395464
Fix PHP 8.1 deprecation warnings
2021-07-31 07:53:14 +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
12562a7b0e
Remove redundant code from rcube_charset::clean()
2021-03-22 08:36:19 +01:00
Aleksander Machniak
5ac44fd4ed
PHPDoc fixes
2021-02-28 11:58:27 +01:00
Aleksander Machniak
cdeccac627
Also ignore PHP8 warnings on iconv() use with invalid encoding
2021-01-30 17:59:09 +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
Aleksander Machniak
f4ed1024dc
PHP8 fixes, CS fixes, short array syntax, tests
2020-12-02 20:15:00 +01:00
Aleksander Machniak
37d75d96a3
Short array syntax, CS fixes
2020-11-27 19:51:33 +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
a5c2b4360c
Fixes in context of undefined variables, and code style
2020-08-15 12:13:31 +02:00
Aleksander Machniak
30610e867e
Merge branch 'fix_encode' of https://github.com/shirosaki/roundcubemail into shirosaki-fix_encode
...
Refactor the new code
2020-06-13 12:53:31 +02:00
Aleksander Machniak
35c29be9b2
Remove use of ext-iconv
2020-05-03 18:33:20 +02:00
Hiroshi Shirosaki
d9667295d8
Fix wordwrap with ISO-2022-JP
...
A message with ISO-2022-JP-MS characters currupts by wordwrap.
Use ISO-2022-JP-MS charset in wordwrap.
Add a unit test.
2019-12-03 17:35:02 +09:00
Hiroshi Shirosaki
869d1d1eaf
Fix ISO-2022-JP-MS encoding convert
...
ISO-2022-JP-MS characters are removed by iconv on sending mail.
Use mbstring functions on sending.
Add a unit test.
2019-12-03 17:25:11 +09:00
Aleksander Machniak
e7ebff56df
PHPDoc fixes
2019-09-30 20:43:07 +02:00
Aleksander Machniak
0c4d78aa11
Remove language code from charset name as per the RFC2231.5
2019-05-15 10:09:57 +02:00
Aleksander Machniak
57c67db029
Remove year(s) from copyright headers + some cleanup
2019-04-16 10:42:45 +02:00
Aleksander Machniak
0bef84c410
Fix decoding non-ascii attachment names from TNEF attachments ( #5646 , #5799 )
2017-06-27 15:25:01 +02:00
ka7
9a35768c26
spelling fixes ( #5690 )
2017-03-12 12:14:19 +01:00
Shin Kojima
0b385dc946
Skip iconv for problematic ISO-2022-JP strings ( #5668 )
...
We sometimes get broken character encodings such as:
Subject: =?iso-2022-jp?B?GyRCLWo7M3l1OSk2SBsoQgo=?=
This actually is not a strict ISO-2022-JP string, but a CP50220 string
that is a variant of ISO-2022-JP with extended characters proposed by
Microsoft. Iconv can not handle these encodings well.
2017-03-06 09:22:55 +01:00
Aleksander Machniak
42ddfe5ec9
Simplify mbstring code path in rcube_charset::convert()
2016-09-27 17:03:02 +02:00
Aleksander Machniak
c65bb121eb
Describe Framework requirements, drop some redundant code (since we require mbstring)
2016-08-20 11:07:05 +02:00
Aleksander Machniak
7e3298753a
Use ternary operator where aplicable
2015-11-14 10:08:07 +01:00
Aleksander Machniak
1b61a48eec
Get rid of mb_check_encoding() before mb_convert_encoding() for better performance, CS fixes
2015-09-22 21:18:15 +02:00
Aleksander Machniak
83345af059
Log charset conversion warning only when no function was found, not when the string was invalid
2015-09-22 13:11:30 +02:00
Aleksander Machniak
a958748947
CS fixes
2015-06-07 15:26:33 +02:00
Aleksander Machniak
bb21913387
Fix mb_substitute_character() use
2015-05-06 10:47:08 +02:00
Aleksander Machniak
966a9086a5
Fix rcube_charset::clean() for case when mbstring and iconv are not installed
2015-05-05 13:49:04 +02:00
Aleksander Machniak
066e22874b
Don't log "No suitable function found for UTF-8..." as E_USER_WARNING.
...
Use E_USER_NOTICE - this happens quite often as email messages
containing invalid charset name are not so rare.
2014-12-13 08:54:12 +01:00
Aleksander Machniak
9e4246d957
Code improvements and fixes (mostly unused variables and methods)
2014-11-16 14:04:53 +01:00
Aleksander Machniak
a7a778c157
Fix some character sets detection ( #1490135 )
2014-11-07 11:43:42 +01:00
Thomas Bruederli
a98a4f8bb5
Remove 3rd party libs from our repository and define the dependencies in composer.json-dist.
...
Also remove the ancient utf8 lib and replace it with 'Patchwork UTF-8 for PHP'.
For direct git checkouts, copy composer.json-dist into composer.json and run
`php composer.phar install` to install the dependencies.
2014-08-27 17:45:21 +02:00
Aleksander Machniak
faa9c89236
Make sure mbstring susbtitute character is set to empty string in rcube_charset::clean()
2014-04-13 11:43:18 +02:00
Aleksander Machniak
172302e2cf
Small perf. improvement
2014-01-02 09:08:31 +01:00
Aleksander Machniak
59f0313d98
- Fix detecting Turkish language in ISO-8859-9 encoding ( #1489252 )
2013-07-28 09:03:07 +02:00
Aleksander Machniak
a5b8ef99d4
Improve charset detection by prioritizing charset according to user language ( #1485669 )
2013-01-06 13:10:50 +01:00
Aleksander Machniak
d2534c63f2
Cleanup, remove file paths from doc
2012-12-18 09:07:00 +01:00
Aleksander Machniak
a92beb6bdb
Define RCUBE_CHARSET in place of RCMAIL_CHARSET for naming consistency
2012-11-27 08:43:43 +01:00
Aleksander Machniak
ba6f21caeb
Framework files moved to lib/Roundcube
2012-11-21 19:52:03 +01:00