Author: gert
Date: 2007-11-03 03:15:49 -0500 (Sat, 03 Nov 2007)
New Revision: 88773
Modified:
trunk/mcs/class/System.Web/System.Web/ChangeLog
trunk/mcs/class/System.Web/System.Web/HttpRuntime.cs
Log:
* HttpRuntime.cs: Always return a path with trailing directory
separator character. Spaces to tabs.
Modified: trunk/mcs/class/System.Web/System.Web/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web/ChangeLog 2007-11-03 06:55:32 UTC
(rev 88772)
+++ trunk/mcs/class/System.Web/System.Web/ChangeLog 2007-11-03 08:15:49 UTC
(rev 88773)
@@ -1,3 +1,8 @@
+2007-11-03 Gert Driesen <[EMAIL PROTECTED]>
+
+ * HttpRuntime.cs: Always return a path with trailing directory
+ separator character. Spaces to tabs.
+
2007-11-03 Marek Habersack <[EMAIL PROTECTED]>
* HttpApplication.cs: removed unused internal PrivateBinPath
Modified: trunk/mcs/class/System.Web/System.Web/HttpRuntime.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web/HttpRuntime.cs 2007-11-03
06:55:32 UTC (rev 88772)
+++ trunk/mcs/class/System.Web/System.Web/HttpRuntime.cs 2007-11-03
08:15:49 UTC (rev 88773)
@@ -227,12 +227,15 @@
}
if (_actual_bin_directory == null)
- _actual_bin_directory =
Path.Combine (mypath, "bin") + Path.DirectorySeparatorChar;
+ _actual_bin_directory =
Path.Combine (mypath, "bin");
+
+ if (_actual_bin_directory
[_actual_bin_directory.Length - 1] != Path.DirectorySeparatorChar)
+ _actual_bin_directory +=
Path.DirectorySeparatorChar;
}
- if (SecurityManager.SecurityEnabled) {
+ if (SecurityManager.SecurityEnabled)
new FileIOPermission
(FileIOPermissionAccess.PathDiscovery, _actual_bin_directory).Demand ();
- }
+
return _actual_bin_directory;
}
}
@@ -332,8 +335,8 @@
}
static void AppOfflineFileChanged (object sender,
FileSystemEventArgs args)
- {
- lock (appOfflineLock) {
+ {
+ lock (appOfflineLock) {
bool offline;
switch (args.ChangeType) {
@@ -362,7 +365,7 @@
}
SetOfflineMode (offline, args.FullPath);
}
- }
+ }
static void SetOfflineMode (bool offline, string filePath)
{
@@ -541,7 +544,7 @@
#endif
}
- static string content503 = "<!DOCTYPE HTML PUBLIC
\"-//IETF//DTD HTML 2.0//EN\">\n" +
+ static string content503 = "<!DOCTYPE HTML PUBLIC
\"-//IETF//DTD HTML 2.0//EN\">\n" +
"<html><head>\n<title>503 Server
Unavailable</title>\n</head><body>\n" +
"<h1>Server Unavailable</h1>\n" +
"</body></html>\n";
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches