-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vcard: Fix whitespace handling in line cont's #9637
vcard: Fix whitespace handling in line cont's #9637
Conversation
Previously, multiple whitespace characters at the start of a continuation line would all be dropped, instead of only the first one. Also, - restrict line continuation characters to SPACE and TAB. Note that, like before, this identifies the CR (`\r`) character with the empty string, and thereby notably does not require a CRLF (`\r\n`) sequence (which is mandated by RFCs 2426, 2425) for line termination (i.e., `\n` suffices). Fixes: Bug 1 of issue roundcube#9593.
Thank you very much! The failing tests are unrelated to your changes, I guess. I'll try to run them again later, since it looks like a temporary problem. If you feel up to it I'd really celebrate if you would add a unit-test to check the now correct behaviour! |
@alecpl The CI fails because the TLS-cert of git.kolab.org expired 2 days ago. Is there maybe anything you can do about that? |
Test added. Running the tests locally, I got the following, seemingly unrelated failure:
|
That sorting failure is unrelated, don't worry about it! |
Have a look at the Coding Style check errors, please. |
Fixed coding style errors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thank you very much for your contribution!
* vcard: Fix whitespace handling in line cont's Previously, multiple whitespace characters at the start of a continuation line would all be dropped, instead of only the first one. Also, - restrict line continuation characters to SPACE and TAB. Note that, like before, this identifies the CR (`\r`) character with the empty string, and thereby notably does not require a CRLF (`\r\n`) sequence (which is mandated by RFCs 2426, 2425) for line termination (i.e., `\n` suffices). Fixes: Bug 1 of issue #9593. * vcard: Add test for #9593/1 * Fix coding style
Previously, multiple whitespace characters at the start of a continuation line would all be dropped, instead of only the first one.
Also,
Note that, like before, this identifies the CR (
\r
) character with the empty string, and thereby notably does not require a CRLF (\r\n
) sequence (which is mandated by RFCs 2426, 2425) for line termination (i.e.,\n
suffices).Fixes: Bug 1 of issue #9593.