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

Slash baseUrl only from IRI beginning #3776

Merged
merged 1 commit into from
Oct 22, 2020
Merged

Conversation

maxtorete
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tickets fixes #3775
License MIT
Doc PR

I made a comparison before slashing the first baseUrl from IRI as security check, maybe it can be removed. I used substr as it is faster than preg_replace.

Copy link
Contributor

@GregoireHebert GregoireHebert left a comment

Choose a reason for hiding this comment

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

Seems good to me!

@dunglas dunglas merged commit 111bddb into api-platform:2.5 Oct 22, 2020
@dunglas
Copy link
Member

dunglas commented Oct 22, 2020

Good catch, thanks!

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.

3 participants