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

[Validator] Allow an empty path in a URL with only a fragment or a query#16259

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
fabpot merged 1 commit intosymfony:2.3fromjakzal:validator/empty-path
Oct 17, 2015

Conversation

@jakzal
Copy link
Contributor

QA
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#15891
LicenseMIT
Doc PR-

URLs likehttp://symfony.com?query=1 orhttp://symfony.com# should be valid.

According to theRFC3986:

When authority is present, the path must either be empty or begin with a slash ("/") character.
When authority is not present, the path cannot begin with two slash characters ("//").

Since the RFC describes URIs, the second sentence doesn't apply here as the authority is required in URLs .

@Tobion
Copy link
Contributor

👍

Status: Reviewed

@fabpot
Copy link
Member

Thank you@jakzal.

@fabpotfabpot merged commitb3a5411 intosymfony:2.3Oct 17, 2015
fabpot added a commit that referenced this pull requestOct 17, 2015
…ent or a query (jakzal)This PR was merged into the 2.3 branch.Discussion----------[Validator] Allow an empty path in a URL with only a fragment or a query| Q             | A| ------------- | ---| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#15891| License       | MIT| Doc PR        | -URLs like `http://symfony.com?query=1` or `http://symfony.com#` should be valid.According to the [RFC3986](https://tools.ietf.org/html/rfc3986#page-16):> When authority is present, the path must either be empty or begin with a slash ("/") character.> When authority is not present, the path cannot begin with two slash characters ("//").Since the RFC describes URIs, the second sentence doesn't apply here as the authority is required in URLs .Commits-------b3a5411 [Validator] Allow an empty path in a URL with only a fragment or a query
@jakzaljakzal deleted the validator/empty-path branchOctober 26, 2015 11:30
This was referencedOct 27, 2015
@zorji
Copy link

@jakzal Can you double check your changes?
The following 2 test cases passed

But this test case failed

fabpot added a commit that referenced this pull requestNov 13, 2015
…or a query (jakzal)This PR was merged into the 2.3 branch.Discussion----------[Validator] Allow an empty path with a non empty fragment or a query| Q             | A| ------------- | ---| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#16536| License       | MIT| Doc PR        | -#16259 didn't fully fix the issue.Commits-------2d0af8e [Validator] Allow an empty path with a non empty fragment or a query
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@jakzal@Tobion@fabpot@zorji@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp