From 5211ee30b8fe45d429dbf7c37b83ab99a763f33b Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Mon, 30 Jul 2012 18:35:49 +0000 Subject: [PATCH] test http\Url::SANITIZE_PATH --- tests/url001.phpt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2