Skip to content

[BUGFIX] RFC-3986 compliant validation of URI relative references #358

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

Merged
merged 1 commit into from
Feb 23, 2017

Conversation

erayd
Copy link
Contributor

@erayd erayd commented Feb 22, 2017

Adds some hackery to properly validate RFC-3986 relative references, as PHP's FILTER_VALIDATE_URL is based on an older RFC and can't handle them.

Json schema spec says URLs are validated as per RFC-3986, but PHP's
FILTER_VALIDATE_URL can't cope with relative path references, which are
explicitly allowed. See https://tools.ietf.org/html/rfc3986#section-4.2
for further information.
Copy link
Collaborator

@bighappyface bighappyface left a comment

Choose a reason for hiding this comment

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

+1

@shmax?

@shmax
Copy link
Collaborator

shmax commented Feb 23, 2017

Not sure that I totally understand this one, but I see no obvious black holes, so 👍

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