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 exception when use_referer option is true and referer is not set or empty#24101

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

Closed
linniksa wants to merge1 commit intosymfony:masterfromlinniksa:patch-referrer

Conversation

@linniksa
Copy link
Contributor

QA
Branch?2.7
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
LicenseMIT

$targetUrl =substr($targetUrl,0,$pos);
}
if ($targetUrl !==$this->httpUtils->generateUri($request,$this->options['login_path'])) {
if (!empty($targetUrl) &&$targetUrl !==$this->httpUtils->generateUri($request,$this->options['login_path'])) {
Copy link
Member

@chalasrchalasrSep 6, 2017
edited
Loading

Choose a reason for hiding this comment

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

I would use$targetUrl instead of!empty().

@fabpot
Copy link
Member

Thank you@linniksa.

fabpot added a commit that referenced this pull requestSep 7, 2017
…nd referer is not set or empty (linniksa)This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes#24101).Discussion----------[Security] Fix exception when use_referer option is true and referer is not set or empty| Q             | A| ------------- | ---| Branch?       | 2.7| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| License       | MITCommits-------a29e069 [Security] Fix exception when use_referer option is true and referer is not set or empty
@fabpotfabpot closed thisSep 7, 2017
@linniksalinniksa deleted the patch-referrer branchSeptember 7, 2017 18:04
@fabpotfabpot mentioned this pull requestSep 11, 2017
This was referencedOct 5, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@chalasrchalasrchalasr approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

2.7

Development

Successfully merging this pull request may close these issues.

4 participants

@linniksa@fabpot@chalasr@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp