Skip to content

Commit 7a3382a

Browse files
committed
Added language to withPath() regarding percent encoding
Per RFC 3986, section 2, reserved characters must be percent encoded. Additionally, the implementation must not double-encode.
1 parent 4727540 commit 7a3382a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/UriInterface.php

Lines changed: 4 additions & 0 deletions
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.

0 commit comments

Comments
 (0)