Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Security] Fix wrong cache directive when using the new PUBLIC_ACCESS attribute#42596

New issue

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

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
wouterj merged 1 commit intosymfony:5.3fromwouterj:pull-41613/backport-53
Aug 17, 2021

Conversation

@wouterj
Copy link
Member

@wouterjwouterj commentedAug 17, 2021
edited
Loading

QA
Branch?5.3
Bug fix?yes
New feature?no
Deprecations?no
TicketsRef#41613 (comment)
LicenseMIT
Doc PR-

PUBLIC_ACCESS is the newIS_AUTHENTICATED_ANONYMOUSLY since 5.2, but we didn't correctly check for this causing a private cache directive for a stateless page.

This PR also includes 2 changes from#42595 that could be backported to 5.3

$salt =$user->getSalt();

if (null !==$salt) {
if ($salt) {
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

getSalt() is typehinted as@return string, sonull would be invalid. This check is now also in sync with the same deprecation check inCheckCredentialsListener.

@wouterjwouterjforce-pushed thepull-41613/backport-53 branch froma7b370f toca80ee3CompareAugust 17, 2021 15:46
@wouterjwouterj merged commitfd0dc96 intosymfony:5.3Aug 17, 2021
@wouterjwouterj deleted the pull-41613/backport-53 branchAugust 17, 2021 15:46
@fabpotfabpot mentioned this pull requestAug 30, 2021
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@jderussejderussejderusse left review comments

@fabpotfabpotfabpot approved these changes

@chalasrchalasrchalasr approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

5.3

Development

Successfully merging this pull request may close these issues.

5 participants

@wouterj@fabpot@jderusse@chalasr@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp