Repository navigation
Conversation
Girgias
left a comment
There was a problem hiding this comment.
This seems sensible, but not super familiar with RFC 1867, maybe @iluuu1994 or @bukka have some comments?
164e5fb to
abd2d93
Compare
|
I have added missing entry in NEWS. |
abd2d93 to
1c84f86
Compare
1c84f86 to
43cb7db
Compare
43cb7db to
18ab329
Compare
18ab329 to
3466474
Compare
b989b90 to
07f8ffa
Compare
07f8ffa to
f47dbb9
Compare
|
Is it safe to merge this PR? I have rebased on fresh branch right now. |
|
This didn't have a proper review yet, it's on my list. But feature freeze... |
|
Changes look good to me. How does this relate to PHP RFC: Deprecate GET/POST sessions? |
f47dbb9 to
b53f0a4
Compare
|
I removed defaults from INI section in test. |
I think it would make sense to explicitly set |
|
What's the point if this is default and it will be removed in next PHP versions? |
|
I thought it would be needed because it is mentioned in the title that it tests this condition:
If you say |
The RFC1867 multipart callback captures the session ID from form data to identify which session to write the upload progress to. When
session.use_only_cookies=1this capture was not guarded, allowing the session ID to be accepted from a form field despite the setting's documented contract of "only accept session ID from cookies."php_session_rfc1867_early_find_sid()already guards $_GET lookup behinduse_only_cookies, but the form field capture inMULTIPART_EVENT_FORMDATAhad no such guard.This commit adds the missing check so that when
use_only_cookies=1and no cookie is present, the form-supplied session ID is ignored and the upload progress is written to a randomly generated session instead.I don't know if this is a security fix, so I point to the 8.4 branch.