http://bugzilla.xamarin.com/show_bug.cgi?id=2345
authorMartin <test051102@hotmail.com>
Mon, 12 Dec 2011 12:12:07 +0000 (13:12 +0100)
committerMartin <test051102@hotmail.com>
Mon, 12 Dec 2011 12:12:07 +0000 (13:12 +0100)
mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationHost.cs

index 4c3abb13b6664ab7cfe5f1fff6f04f945d92544e..054f907cdba2e756571fb1053f3fbedcd193de12 100644 (file)
@@ -385,16 +385,25 @@ namespace System.Web.Configuration
                                        else
                                                normalized = configPath;
                                        
-                                       return (String.Compare (normalized, MachinePath, StringComparison.Ordinal) == 0) ||
-                                               (String.Compare (normalized, MachineWebPath, StringComparison.Ordinal) == 0) ||
-                                               (String.Compare (normalized, "/", StringComparison.Ordinal) == 0) ||
-                                               (String.Compare (normalized, "~", StringComparison.Ordinal) == 0) ||
-                                               (String.Compare (normalized, appVirtualPath) == 0);
+                                       if ((String.Compare (normalized, MachinePath, StringComparison.Ordinal) == 0) ||
+                                               (String.Compare (normalized, MachineWebPath, StringComparison.Ordinal) == 0))
+                                                       return true;
+                               
+                                       if ((String.Compare (normalized, appVirtualPath) != 0))
+                                               return IsApplication (normalized);
+                               
+                                       return true;
                                default:
                                        return true;
                        }
                }
                
+               [MonoTODO("Should return false in case strPath points to the root of an application.")]
+               internal bool IsApplication(string strPath)
+               {
+                       return true;
+               }
+               
                public virtual bool IsFile (string streamName)
                {
                        throw new NotImplementedException ();