Skip to content

Fix crash when suffix has https:// because of a broken link#167

Open
lisotton wants to merge 1 commit intoopeneuropa:masterfrom
lisotton:fix-crash-when-suffix-has-https
Open

Fix crash when suffix has https:// because of a broken link#167
lisotton wants to merge 1 commit intoopeneuropa:masterfrom
lisotton:fix-crash-when-suffix-has-https

Conversation

@lisotton
Copy link
Contributor

Closes #155.

* The suffix.
*/
public function getSuffixFromPath(string $path): string {
$parsed = UrlHelper::parse($path);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note for reviewer: why calling UrlHelper:parse if the content of $path is already expected to be a path, without query string and fragment?
Where this function is called, it is the result of $request->getPathInfo(), which already return only the path part of the URL. This can be seen in the documentation of the function:
image

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.

White page error

1 participant