From: Michael Wallner Date: Mon, 30 Jul 2012 18:35:49 +0000 (+0000) Subject: test http\Url::SANITIZE_PATH X-Git-Tag: RELEASE_2_1_0_RC3~10^2^2~109 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=5211ee30b8fe45d429dbf7c37b83ab99a763f33b;p=m6w6%2Fext-http test http\Url::SANITIZE_PATH --- diff --git a/tests/url001.phpt b/tests/url001.phpt index 6519ddf..cd792f2 100644 --- a/tests/url001.phpt +++ b/tests/url001.phpt @@ -12,7 +12,7 @@ s=b&i=0&e=&a[]=1&a[]=2 printf("%s\n", new http\Url); printf("%s\n", new http\Url("other", "index")); printf("%s\n", new http\Url(array("scheme" => "https", "port" => 443))); -printf("%s\n", new http\Url(array("path" => "/./up/../down/../././//index.php/.", "query" => null))); +printf("%s\n", new http\Url(array("path" => "/./up/../down/../././//index.php/.", "query" => null), null, http\Url::SANITIZE_PATH|http\Url::FROM_ENV)); printf("%s\n", new http\Url(null, null, 0)); ?> DONE