[Mono-list] [PATCH] URI

John Anderson sontek at gmail.com
Mon Sep 17 14:53:42 EDT 2007


sorry, I sent this earlier but forgot to mark as [PATCH]

Right now unix paths are being accepted as a valid absolute path, but in
ms.net the path "/test.aspx"  is relative

Theres no real way to differentiate between the web relative path and a unix
path so I suggest we do a check,
if UriKind.Relative is passed, allow /test.aspx as relative, otherwise
consider it absolute.

I've attached the patch for this and its test.

The other way would be to require unix paths to have file:// on them, but
then we'd break code like:  new Uri( System.IO.Path.GetFullPath
("test/test.aspx"))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070917/b92f15df/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uripatch.patch
Type: text/x-patch
Size: 1516 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-list/attachments/20070917/b92f15df/attachment-0002.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uripatch-test.patch
Type: text/x-patch
Size: 647 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-list/attachments/20070917/b92f15df/attachment-0003.bin 


More information about the Mono-list mailing list