Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAtsushi Eno <atsushieno@gmail.com>2004-01-06 06:06:37 +0300
committerAtsushi Eno <atsushieno@gmail.com>2004-01-06 06:06:37 +0300
commit526b94b0eee6b1e42606eb1c5e8746258e1d2d47 (patch)
tree67b78c0c6514a1dadbc91dc26822cf1d9ce572c8 /mcs/class/System/System
parent239c5d7c67b9ccb0c7d85e86a562601cd992e5b2 (diff)
2004-01-06 Atsushi Enomoto <atsushi@ximian.com>
* Uri.cs : quick fix on local file relative uri. svn path=/trunk/mcs/; revision=21730
Diffstat (limited to 'mcs/class/System/System')
-rw-r--r--mcs/class/System/System/ChangeLog4
-rwxr-xr-xmcs/class/System/System/Uri.cs2
2 files changed, 5 insertions, 1 deletions
diff --git a/mcs/class/System/System/ChangeLog b/mcs/class/System/System/ChangeLog
index 01a3c03dd68..e3d64c1c07d 100644
--- a/mcs/class/System/System/ChangeLog
+++ b/mcs/class/System/System/ChangeLog
@@ -1,5 +1,9 @@
2004-01-06 Atsushi Enomoto <atsushi@ximian.com>
+ * Uri.cs : quick fix on local file relative uri.
+
+2004-01-06 Atsushi Enomoto <atsushi@ximian.com>
+
* Uri.cs : Fixed Parse(). Should not allow relative URIs.
2004-01-05 Atsushi Enomoto <atsushi@ximian.com>
diff --git a/mcs/class/System/System/Uri.cs b/mcs/class/System/System/Uri.cs
index d47d970a690..8fd050f25c9 100755
--- a/mcs/class/System/System/Uri.cs
+++ b/mcs/class/System/System/Uri.cs
@@ -809,7 +809,7 @@ namespace System
// unix UNC (kind of)
isUnc = true;
} else {
- if (uriString [0] != '\\' && uriString [0] != '/' && uriString.StartsWith ("file://"))
+ if (uriString [0] != '\\' && uriString [0] != '/' && !uriString.StartsWith ("file://"))
throw new UriFormatException ("Invalid URI: The format of the URI could not be determined.");
scheme = Uri.UriSchemeFile;
if (uriString.StartsWith ("\\\\")) {