Fix escaping on relative URI
authorSebastien Pouliot <sebastien@ximian.com>
Fri, 17 Sep 2010 19:26:33 +0000 (15:26 -0400)
committerSebastien Pouliot <sebastien@ximian.com>
Fri, 17 Sep 2010 21:25:37 +0000 (17:25 -0400)
commit28e93c38d0d7c008bcc594e44771903840d48830
treecd1e4a6cbadf192b45ab6eea1418a22b8a62e2ae
parent6ad868a9a3c2999a9b999d89d1ff03aa02c2d4bf
Fix escaping on relative URI

* System/Uri.cs: While parsing only escape the path for absolute URI.
Do not unescape relative URI in ToString and avoid calling
AppendQueryAndFragment on them (relative) since both are not parsed as
such.

* Test/System/UriTest2.cs: Add test case to show that a relative URI is
NOT escaped by ToString
mcs/class/System/System/Uri.cs
mcs/class/System/Test/System/UriTest2.cs