Skip to content

Conversation

@xabbuh
Copy link
Member

@xabbuh xabbuh commented Sep 15, 2025

Q A
Branch? 8.0
Bug fix? no
New feature? yes
Deprecations? no
Issues
License MIT

@carsonbot

This comment was marked as outdated.

@nicolas-grekas
Copy link
Member

The failure on high-deps looks legit to me: 7.4 will break when loaded with 8.0 at the moment.

{
// $userIdentifier is encoded because it might contain COOKIE_DELIMITER, we assume other values don't
return implode(self::COOKIE_DELIMITER, [strtr($this->userFqcn ?? '', '\\', '.'), strtr(base64_encode($this->userIdentifier), '+/=', '-_~'), $this->expires, $this->value]);
return implode(self::COOKIE_DELIMITER, [strtr(base64_encode($this->userIdentifier), '+/=', '-_~'), $this->expires, $this->value]);
Copy link
Member

@nicolas-grekas nicolas-grekas Sep 16, 2025

Choose a reason for hiding this comment

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

I this we should preserve the current layout for easier BC/FC

Suggested change
return implode(self::COOKIE_DELIMITER, [strtr(base64_encode($this->userIdentifier), '+/=', '-_~'), $this->expires, $this->value]);
return implode(self::COOKIE_DELIMITER, ['', strtr(base64_encode($this->userIdentifier), '+/=', '-_~'), $this->expires, $this->value]);

nicolas-grekas added a commit that referenced this pull request Sep 18, 2025
…okie to ease upgrades (xabbuh)

This PR was merged into the 7.4 branch.

Discussion
----------

[Security] keep an empty class segment in remember me cookie to ease upgrades

| Q             | A
| ------------- | ---
| Branch?       | 7.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Issues        | see #61760 (comment)
| License       | MIT

Commits
-------

8d97784 keep an empty class segment in remember me cookie to ease upgrades
abdellahrk pushed a commit to abdellahrk/symfony that referenced this pull request Sep 18, 2025
…r me cookie to ease upgrades (xabbuh)

This PR was merged into the 7.4 branch.

Discussion
----------

[Security] keep an empty class segment in remember me cookie to ease upgrades

| Q             | A
| ------------- | ---
| Branch?       | 7.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Issues        | see symfony#61760 (comment)
| License       | MIT

Commits
-------

8d97784 keep an empty class segment in remember me cookie to ease upgrades
@xabbuh xabbuh force-pushed the pr-61654 branch 2 times, most recently from bb13758 to 364c1e5 Compare September 18, 2025 08:56
xabbuh added a commit that referenced this pull request Sep 19, 2025
This PR was merged into the 7.4 branch.

Discussion
----------

[Security] make test forward compatible

| Q             | A
| ------------- | ---
| Branch?       | 7.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Issues        |
| License       | MIT

see the high deps failure in #61760

Commits
-------

e978c2e make test forward compatible
@xabbuh
Copy link
Member Author

xabbuh commented Sep 19, 2025

tests are fixed

Status: Needs Review

@fabpot
Copy link
Member

fabpot commented Sep 19, 2025

Thank you @xabbuh.

@fabpot fabpot merged commit 577f30b into symfony:8.0 Sep 19, 2025
8 of 10 checks passed
@xabbuh xabbuh deleted the pr-61654 branch September 19, 2025 10:33
@fabpot fabpot mentioned this pull request Oct 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants