Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Specify that generateUri() MUST NOT encode returned URIs #149

Conversation

weierophinney
Copy link
Member

As an alternative to #134. The primary issue reported in that pull request was that the author wished to get the raw URL instead of the escaped version.

2 of the 3 implementations we provide do not encode URIs (ZendRouter and FastRoute), and 3rd party utilities such as league/uri provide escaping capabilities at a fine-grained level. As such, this patch updates the interface to specify that implementations MUST NOT encode URIs returned by generateUri(). Additionally, the Aura router was updated to call generateRaw() internally to comply with the specification.

2 of the 3 implementations we provide do not encode URIs (ZendRouter and
FastRoute), and 3rd party utilities such as league/uri provide escaping
capabilities at a fine-grained level. As such, this patch updates the interface
to specify that implementations MUST NOT encode URIs returned by
`generateUri()`. Additionally, the Aura router was updated to call
`generateRaw()` internally to comply with the specification.
@weierophinney weierophinney added this to the 0.4.0 milestone Oct 9, 2015
@weierophinney weierophinney self-assigned this Oct 9, 2015
- Created a test to ensure that the AuraRouter is not encoding generated
  URIs.
@weierophinney weierophinney merged commit 146bba7 into zendframework:develop Oct 9, 2015
weierophinney added a commit that referenced this pull request Oct 9, 2015
@weierophinney weierophinney deleted the feature/uri-generation-encoding branch October 9, 2015 23:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant