Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DomCrawler] UriResolver support path with colons #52579

Merged
merged 1 commit into from Nov 14, 2023

Conversation

vdauchy
Copy link
Contributor

@vdauchy vdauchy commented Nov 14, 2023

Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix UriResolver bad handling of colons in path
License MIT

Resolving links on pages using weird pagination like: https://localhost/domain/search/page:5 fails due to : making

var_dump(parse_url('/page:1', \PHP_URL_SCHEME));

Return false (and not null as expected in the code).

This simply ensure the absolute URL is returned only if the SCHEME is found (ie a string is returned by parse_url).

@carsonbot
Copy link

Hey!

Thanks for your PR. You are targeting branch "5.4" but it seems your PR description refers to branch "6.3".
Could you update the PR description or change target branch? This helps core maintainers a lot.

Cheers!

Carsonbot

src/Symfony/Component/DomCrawler/UriResolver.php Outdated Show resolved Hide resolved
@stof stof changed the title [DomCrawler] UriResolver support path with columns [DomCrawler] UriResolver support path with colons Nov 14, 2023
@nicolas-grekas
Copy link
Member

Thank you @vdauchy.

@nicolas-grekas nicolas-grekas merged commit a92dd0d into symfony:5.4 Nov 14, 2023
7 of 11 checks passed
This was referenced Nov 15, 2023
lyrixx added a commit to lyrixx/symfony that referenced this pull request Nov 17, 2023
…colons (vdauchy)"

This reverts commit a92dd0d, reversing
changes made to c5b810f.
lyrixx added a commit to lyrixx/symfony that referenced this pull request Nov 17, 2023
…colons (vdauchy)"

This reverts commit a92dd0d, reversing
changes made to c5b810f.
nicolas-grekas pushed a commit to lyrixx/symfony that referenced this pull request Nov 17, 2023
nicolas-grekas added a commit that referenced this pull request Nov 17, 2023
…ith colons" (lyrixx)

This PR was squashed before being merged into the 5.4 branch.

Discussion
----------

[DomCrawler] Revert "bug #52579 UriResolver support path with colons"

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Issues        | fix #52628
| License       | MIT

Commits
-------

790fb38 [DomCrawler] Revert "bug #52579 UriResolver support path with colons"
nicolas-grekas added a commit that referenced this pull request Nov 20, 2023
* 5.4:
  [Cache][Lock] Fix PDO store not creating table + add tests
  Closes #51936-Added Missing translations for Czech (cs) in validators.cs.xlf file
  Added missing translations in turkish and updated validators.tr.xlf
  [Serializer] Fix denormalizing date intervals having both weeks and days
  [Validator] updated Turkish translation
  [Serializer] Fix denormalize constructor arguments
  Add some more non-countable English nouns
  Add hint that changing input arguments has no effect
  [DomCrawler] Revert "bug #52579 UriResolver support path with colons"
  [VarExporter] Fix handling mangled property names returned by __sleep()
  Update Github template for 7.1
nicolas-grekas added a commit that referenced this pull request Nov 20, 2023
* 6.3:
  [Cache][Lock] Fix PDO store not creating table + add tests
  Closes #51936-Added Missing translations for Czech (cs) in validators.cs.xlf file
  Added missing translations in turkish and updated validators.tr.xlf
  [Serializer] Fix denormalizing date intervals having both weeks and days
  [Validator] updated Turkish translation
  [Serializer] Fix denormalize constructor arguments
  Add some more non-countable English nouns
  Add hint that changing input arguments has no effect
  [DomCrawler] Revert "bug #52579 UriResolver support path with colons"
  [VarExporter] Fix handling mangled property names returned by __sleep()
  Update Github template for 7.1
nicolas-grekas added a commit that referenced this pull request Nov 20, 2023
* 6.4:
  [FrameworkBundle] Add TemplateController to the list of allowed controllers for fragments
  [Cache][Lock] Fix PDO store not creating table + add tests
  Closes #51936-Added Missing translations for Czech (cs) in validators.cs.xlf file
  Added missing translations in turkish and updated validators.tr.xlf
  [Serializer] Fix denormalizing date intervals having both weeks and days
  [Validator] updated Turkish translation
  [Serializer] Remove wrong final tags
  [Serializer] Fix denormalize constructor arguments
  Add some more non-countable English nouns
  Add hint that changing input arguments has no effect
  register the virtual request stack together with common profiling services
  Don't lose checkpoint state when lock is acquired from another
  [DomCrawler] Revert "bug #52579 UriResolver support path with colons"
  [VarExporter] Fix handling mangled property names returned by __sleep()
  Update Github template for 7.1
  Fix memory limit in PhpSubprocess unit test
nicolas-grekas added a commit that referenced this pull request Nov 20, 2023
* 7.0:
  [FrameworkBundle] Add TemplateController to the list of allowed controllers for fragments
  [Cache][Lock] Fix PDO store not creating table + add tests
  Closes #51936-Added Missing translations for Czech (cs) in validators.cs.xlf file
  Added missing translations in turkish and updated validators.tr.xlf
  [Serializer] Fix denormalizing date intervals having both weeks and days
  [Validator] updated Turkish translation
  [Serializer] Remove wrong final tags
  [Serializer] Fix denormalize constructor arguments
  Add some more non-countable English nouns
  Add hint that changing input arguments has no effect
  register the virtual request stack together with common profiling services
  Don't lose checkpoint state when lock is acquired from another
  [DomCrawler] Revert "bug #52579 UriResolver support path with colons"
  [DoctrineBridge] Fix use "attribute" driver by default
  [VarExporter] Fix handling mangled property names returned by __sleep()
  Update Github template for 7.1
  [WebProfilerBundle] Mark CodeExtension as non-internal
  Fix memory limit in PhpSubprocess unit test
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.

None yet

4 participants