* HttpRequest.cs: PathInfo returns an empty string when worker
request is absent or its GetPathInfo method returns a null. Patch
from Tiaan <tagdev@gmail.com>, thanks!
2009-11-23 Marek Habersack <mhabersack@novell.com>
* Route.cs: GetRouteData throws NotImplementedException only when
pathInfo for the current request is a non-empty string. Patch from
Tiaan <tagdev@gmail.com>, thanks!
svn path=/trunk/mcs/; revision=146732
+2009-11-23 Marek Habersack <mhabersack@novell.com>
+
+ * Route.cs: GetRouteData throws NotImplementedException only when
+ pathInfo for the current request is a non-empty string. Patch from
+ Tiaan <tagdev@gmail.com>, thanks!
+
2009-11-09 Marek Habersack <mhabersack@novell.com>
* RouteCollection.cs: GetVirtualPath doesn't append trailing slash
var path = httpContext.Request.AppRelativeCurrentExecutionFilePath;
var pathInfo = httpContext.Request.PathInfo;
- if (pathInfo != String.Empty)
+ if (!String.IsNullOrEmpty (pathInfo))
throw new NotImplementedException ();
// probably code like this causes ArgumentOutOfRangeException under .NET.
+2009-11-23 Marek Habersack <mhabersack@novell.com>
+
+ * HttpRequest.cs: PathInfo returns an empty string when worker
+ request is absent or its GetPathInfo method returns a null. Patch
+ from Tiaan <tagdev@gmail.com>, thanks!
+
2009-11-19 Marek Habersack <mhabersack@novell.com>
* VirtualPathUtility.cs: made Normalize internal
if (path_info == null) {
if (worker_request == null)
return String.Empty;
- path_info = worker_request.GetPathInfo ();
+ path_info = worker_request.GetPathInfo () ?? String.Empty;
}
return path_info;