Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix unserialization of header continuation / line folding #82

Merged
merged 1 commit into from
Apr 6, 2022

Conversation

TimWolla
Copy link
Contributor

@TimWolla TimWolla commented Apr 6, 2022

Q A
Documentation no
Bugfix yes
BC Break no
New Feature no
RFC no
QA no

Description

As per RFC 7230:

A user agent that receives an obs-fold in a response message that is
not within a message/http container MUST replace each received
obs-fold with one or more SP octets prior to interpreting the field
value.

Thus a space must be inserted when concatenating the continuation line in
AbstractSerializer::splitStream().

As per RFC 7230:

> A user agent that receives an obs-fold in a response message that is
> not within a message/http container MUST replace each received
> obs-fold with one or more SP octets prior to interpreting the field
> value.

Thus a space must be inserted when concatenating the continuation line in
AbstractSerializer::splitStream().

Signed-off-by: Tim Düsterhus <duesterhus@woltlab.com>
@Ocramius Ocramius added the Bug Something isn't working label Apr 6, 2022
@Ocramius Ocramius added this to the 2.10.0 milestone Apr 6, 2022
Copy link
Member

@Ocramius Ocramius left a comment

Choose a reason for hiding this comment

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

LGTM - see https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.4

@weierophinney do we want this in a minor, or a patch? It's probably just a bug, so 2.9.x?

@Ocramius Ocramius requested a review from weierophinney April 6, 2022 16:16
@Ocramius Ocramius modified the milestones: 2.10.0, 2.9.1 Apr 6, 2022
@Ocramius Ocramius changed the base branch from 2.10.x to 2.9.x April 6, 2022 16:16
@Ocramius
Copy link
Member

Ocramius commented Apr 6, 2022

Targeting 2.9.1 and preparing a release, thanks @TimWolla!

@Ocramius Ocramius self-assigned this Apr 6, 2022
@Ocramius Ocramius merged commit 736ba5c into laminas:2.9.x Apr 6, 2022
@TimWolla TimWolla deleted the line-folding-normalize branch April 6, 2022 16:46
@weierophinney
Copy link
Member

Yes - in a minor. Thanks, @Ocramius !

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants