Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jan 8, 2020. It is now read-only.

hotfix/4508 and make Zend\Http\Header\SetCookie RFC conform#5078

Closed
ClemensSahs wants to merge 9 commits into
zendframework:masterfrom
ClemensSahs:hotfix/4508
Closed

hotfix/4508 and make Zend\Http\Header\SetCookie RFC conform#5078
ClemensSahs wants to merge 9 commits into
zendframework:masterfrom
ClemensSahs:hotfix/4508

Conversation

@ClemensSahs
Copy link
Copy Markdown
Contributor

hotfix for the issues #4508

@ClemensSahs
Copy link
Copy Markdown
Contributor Author

last thing to do is fix the bug in fromString.
quotes will be urlencoded

@weierophinney
Copy link
Copy Markdown
Member

@ClemensSahs Please see https://travis-ci.org/ClemensSahs/zf2/jobs/10994478#L475 - looks like either the test expectation is incorrect, or the urlencoding has gone awry.

@ClemensSahs
Copy link
Copy Markdown
Contributor Author

@weierophinney
yes i kown this error, but yesterday I has not time to fix this, too :(

the reason behind this error:

  • the test gives a string with qoutes
  • and current the fromString methode don't detect this right and encode this with urlencode

I think this is near this line perhaps we muss refactor the logic. Currently i have no finial solution.

@ClemensSahs
Copy link
Copy Markdown
Contributor Author

so I'm ready with this PR

but I found that Zend\Http\Header\SetCookie is not RFC conform...
in the RFC multiple cookie's was been defined by a new line

// current implementation
Set-Cookie: SID=31d4d96e407aad42; Path=/; Secure; HttpOnly, lang=en-US; Path=/; Domain=example.com

// standart conform
Set-Cookie: SID=31d4d96e407aad42; Path=/; Secure; HttpOnly
Set-Cookie: lang=en-US; Path=/; Domain=example.com

@ClemensSahs
Copy link
Copy Markdown
Contributor Author

ok I'm fine here, any annotations?

weierophinney added a commit that referenced this pull request Sep 6, 2013
hotfix/4508 and make Zend\Http\Header\SetCookie RFC conform
weierophinney added a commit that referenced this pull request Sep 6, 2013
@ghost ghost assigned weierophinney Sep 6, 2013
weierophinney added a commit to zendframework/zend-http that referenced this pull request May 15, 2015
…hotfix/4508

hotfix/4508 and make Zend\Http\Header\SetCookie RFC conform
weierophinney added a commit to zendframework/zend-http that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-http that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants