[Mono-devel-list] [PATCH] Escape characters are not treated correctly when creating URI from string

Boris Kirzner borisk at mainsoft.com
Sun Jan 11 11:57:35 EST 2004


Hello

Escape characters are not threated in the right way when creating new 
Uri from string.

Reference : RFC2396 part  2.4 (subsection 2.4.2).

Steps to reproduce the problem :
1. Create new Uri from string that already contains escape characters 
(for example "C:\\tmp\\a%20a\\");
2. Inspect  AbsoluteUri property of Uri created.

Actual result :
"C:\\tmp\\a%2520a\\"

Expected result :
"C:\\tmp\\a%20a\\"

Enclosed is a small test case and a patch.

Thank you in advance,

Boris Kirzner


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Uri.cs.diff
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040111/61eeaec8/attachment.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Uri.cs
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040111/61eeaec8/attachment-0001.pl 


More information about the Mono-devel-list mailing list