X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http%2FUrl%2Fmod.md;h=59289ff40ed235e847391d013980eaef905a1791;hb=a765b2f3cf4cd7645731ac8553c3143c7ab7b077;hp=52b1f536c812f19e0855b2356a12f84a8ef71562;hpb=a9966e91a49824155b1d9b3b3a580d43b20e3662;p=mdref%2Fmdref-http diff --git a/http/Url/mod.md b/http/Url/mod.md index 52b1f53..59289ff 100644 --- a/http/Url/mod.md +++ b/http/Url/mod.md @@ -1,16 +1,27 @@ -# http\Url http\Url::mod(mixed $parts[, int $flags = http\Url::JOIN_PATH|http\Url::JOIN_QUERY) +# http\Url http\Url::mod(mixed $parts[, int $flags = http\Url::JOIN_PATH|http\Url::JOIN_QUERY|http\Url::SANITIZE_PATH) Clone this URL and apply $parts to the cloned URL. -> **Note:** This method returns a clone (copy) of this instance. +> ***NOTE:*** +> This method returns a clone (copy) of this instance. ## Params: * mixed $parts New URL parts. -* Optional int $flags = http\Url::JOIN_PATH|http\Url::JOIN_QUERY +* Optional int $flags = http\Url::JOIN_PATH|http\Url::JOIN_QUERY|http\Url::SANITIZE_PATH Modus operandi of URL construction. See http\Url constants. ## Returns: * http\Url, clone. + +## Throws: + +* http\Exception\InvalidArgumentException +* http\Exception\BadUrlException + +## Changelog: + +0. v2.5.0 + * Added http\Url::SANITIZE_PATH to default flags.