Skip to content

Fix new line conversion corner case#2

Merged
ralflang merged 3 commits intohorde:fix/issue_2_new_line_conversion_corner_casefrom
bsod85:fix_new_line_conversion_corner_case
Apr 2, 2026
Merged

Fix new line conversion corner case#2
ralflang merged 3 commits intohorde:fix/issue_2_new_line_conversion_corner_casefrom
bsod85:fix_new_line_conversion_corner_case

Conversation

@bsod85
Copy link
Copy Markdown
Contributor

@bsod85 bsod85 commented Aug 29, 2022

No description provided.

Comment thread lib/Horde/Stream/Filter/Eol.php
Comment thread test/Horde/Stream/Filter/EolTest.php Outdated
Comment thread test/Horde/Stream/Filter/EolTest.php Outdated
@bsod85 bsod85 force-pushed the fix_new_line_conversion_corner_case branch from af2f761 to 4119618 Compare April 7, 2025 13:25
@bsod85 bsod85 changed the base branch from master to FRAMEWORK_6_0 April 7, 2025 13:25

public function testUnixStyleNewLineSubstitution()
{
$test = str_repeat("A\r\n", 4000);
Copy link
Copy Markdown
Contributor Author

@bsod85 bsod85 Apr 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this test string needs to be bigger than a stream bucket and the carriage return needs to be at the end of a bucket

@ralflang
Copy link
Copy Markdown
Member

ralflang commented Apr 2, 2026

Thank you @bsod85 for this excellent bug fix and your patience over the past 3+ years!

The original 2013 fix for Bug #12673 tracked the TARGET EOL's first character but needed to track the SOURCE EOL split.

We've redirected your changes to a feature branch fix/eol-crlf-bucket-boundary.

This will be merged to the production FRAMEWORK_6_0 branch shortly.

@ralflang
Copy link
Copy Markdown
Member

ralflang commented Apr 2, 2026

Accepting into a feature branch which includes your changes plus minor modernizations. Will merge to FRAMEWORK_6_0 after final review.

@ralflang ralflang closed this Apr 2, 2026
@ralflang ralflang reopened this Apr 2, 2026
@ralflang ralflang changed the base branch from FRAMEWORK_6_0 to fix/issue_2_new_line_conversion_corner_case April 2, 2026 11:07
@ralflang ralflang merged commit dc71f86 into horde:fix/issue_2_new_line_conversion_corner_case Apr 2, 2026
@bsod85
Copy link
Copy Markdown
Contributor Author

bsod85 commented Apr 2, 2026

Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants