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

Fix wrong search query in subject #2

Merged
merged 1 commit into from
Mar 9, 2025
Merged

Conversation

phederal
Copy link
Contributor

@phederal phederal commented Mar 8, 2025

What kind of change does this PR introduce? (pls check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe below

Description

If we use a standard port and try to search it for a string with mandatory port specification (function getHostWithPort()), the string will not be found. We need to either look for getUrl() in the subject or change the subject from request()->getUrl() to request()->getScheme() . '://' . request()->getHostWithPort() because the getUrl() function does not output the port if it is standard.

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

Related Issue

#1

Sorry, something went wrong.

If we use a standard port and try to search it for a string with mandatory port specification (function getHostWithPort()), the string will not be found. We need to either look for getUrl() in the subject or change the subject from `request()->getUrl()` to `request()->getScheme() . '://' . request()->getHostWithPort()` because the getUrl() function does not output the port if it is standard.
Copy link
Member

@mychidarko mychidarko left a comment

Choose a reason for hiding this comment

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

Look good, thanks @phederal

@mychidarko mychidarko merged commit 4bd4829 into leafsphp:v4.x Mar 9, 2025
@phederal phederal deleted the patch-1 branch March 9, 2025 13:29
@mychidarko mychidarko mentioned this pull request Mar 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants