簡煒航 (Weihang Jian)

Results 18 issues of 簡煒航 (Weihang Jian)

This pull request fixes #1406 ```ruby Mail::Encodings.value_decode '=?MS950?B?rue26aWrrEapssS1ue6nvaXms3G5SLNX?= =?MS950?B?wMvBfLFNsM/Ay8F8pEirSL1jpmGnfcXn?= =?MS950?B?w9KhXaa5q0il86ywqHSyzqbbsMq1b7Bl?= =?MS950?B?oUG90MJJv++kVaTos3O1sqFBpMWmXrRfKQ==?='" # => 桃園市政府警察局交通違規檢舉專區檢舉人信箱地址驗證(此信件為系統自動發送,請點選下方連結,勿回復) ``` It seems like there are 2 places where we can put the test. I picked...

Encoding
More Work Needed

```ruby string = '=?MS950?B?rue26aWrrEapssS1ue6nvaXms3G5SLNX?= =?MS950?B?wMvBfLFNsM/Ay8F8pEirSL1jpmGnfcXn?= =?MS950?B?w9KhXaa5q0il86ywqHSyzqbbsMq1b7Bl?= =?MS950?B?oUG90MJJv++kVaTos3O1sqFBpMWmXrRfKQ==?=' Mail::Encodings.value_decode string # => "�������F�����������q�H�W���|�M�����|�H�H�c�a�}�����]���H�����t�������o�e�A���I���U���s���A���^�_)" Mail::Encodings.value_decode string.gsub('MS950', 'CP950') # => "桃園市政府警察局交通違規檢舉專區檢舉人信箱地址驗證(此信件為系統自動發送,請點選下方連結,勿回復)" ``` Maybe we can alias MS950 to CP950?

With puma, we can use our own cert files either by URL or a config file. URL: ``` $ puma -b 'ssl://127.0.0.1:9292?key=path_to_key&cert=path_to_cert' ``` config: ```rb ssl_bind '127.0.0.1', '9292', { cert:...

Hacktoberfest

## Reproduction ```sh docker run --rm -i alpine:3.14.0 sh

see #212 The bug has once been fixed with ab91e6d but somehow revived with 1548d60.

Wrong document is worse than no document.

ref: https://ruby-doc.org/core-3.1.0/String.html#encode-method > The value must be :text or :attr. If the value is :text [encode](https://ruby-doc.org/core-3.1.0/String.html#method-i-encode) replaces undefined characters with their (upper-case hexadecimal) numeric character references. '&', '' are converted...