Skip to content

Commit

Permalink
Merge pull request #27 from weierophinney/hotfix/uri-encoding
Browse files Browse the repository at this point in the history
Added language to withPath() regarding percent encoding
  • Loading branch information
Paul M. Jones committed Mar 4, 2015
2 parents 8ad083e + 6fa1059 commit 83826b6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/UriInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,10 @@ public function withPort($port);
* The path MUST be prefixed with "/"; if not, the implementation MAY
* provide the prefix itself.
*
* The implementation MUST percent-encode reserved characters as
* specified in RFC 3986, Section 2, but MUST NOT double-encode any
* characters.
*
* An empty path value is equivalent to removing the path.
*
* @param string $path The path to use with the new instance.
Expand All @@ -223,6 +227,10 @@ public function withPath($path);
* Additionally, the query string SHOULD be parseable by parse_str() in
* order to be valid.
*
* The implementation MUST percent-encode reserved characters as
* specified in RFC 3986, Section 2, but MUST NOT double-encode any
* characters.
*
* An empty query string value is equivalent to removing the query string.
*
* @param string $query The query string to use with the new instance.
Expand Down

0 comments on commit 83826b6

Please sign in to comment.