Skip to content

Commit 83826b6

Browse files
author
Paul M. Jones
committed
Merge pull request #27 from weierophinney/hotfix/uri-encoding
Added language to withPath() regarding percent encoding
2 parents 8ad083e + 6fa1059 commit 83826b6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: src/UriInterface.php

+8
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,10 @@ public function withPort($port);
205205
* The path MUST be prefixed with "/"; if not, the implementation MAY
206206
* provide the prefix itself.
207207
*
208+
* The implementation MUST percent-encode reserved characters as
209+
* specified in RFC 3986, Section 2, but MUST NOT double-encode any
210+
* characters.
211+
*
208212
* An empty path value is equivalent to removing the path.
209213
*
210214
* @param string $path The path to use with the new instance.
@@ -223,6 +227,10 @@ public function withPath($path);
223227
* Additionally, the query string SHOULD be parseable by parse_str() in
224228
* order to be valid.
225229
*
230+
* The implementation MUST percent-encode reserved characters as
231+
* specified in RFC 3986, Section 2, but MUST NOT double-encode any
232+
* characters.
233+
*
226234
* An empty query string value is equivalent to removing the query string.
227235
*
228236
* @param string $query The query string to use with the new instance.

0 commit comments

Comments
 (0)