Skip to content

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