2009-10-12 Marek Habersack <mhabersack@novell.com>
authorMarek Habersack <grendel@twistedcode.net>
Mon, 12 Oct 2009 09:52:18 +0000 (09:52 -0000)
committerMarek Habersack <grendel@twistedcode.net>
Mon, 12 Oct 2009 09:52:18 +0000 (09:52 -0000)
* HttpResponse.cs: actually _use_ the url passed to Redirect when
fully qualified redirect url is requested, doh. Fixes bug #542846

svn path=/trunk/mcs/; revision=143945

mcs/class/System.Web/System.Web/ChangeLog
mcs/class/System.Web/System.Web/HttpResponse.cs

index d7f2174c2b64e8741e501f881544a556fdf8c4bb..aba48e25cf849bca04546d8f391d54e80001a2cd 100644 (file)
@@ -1,3 +1,8 @@
+2009-10-12  Marek Habersack  <mhabersack@novell.com>
+
+       * HttpResponse.cs: actually _use_ the url passed to Redirect when
+       fully qualified redirect url is requested, doh. Fixes bug #542846
+
 2009-10-07 Gonzalo Paniagua Javier <gonzalo@novell.com>
 
        * StaticFileHandler.cs: it's the last flush even when a VPP is used.
index 93dab50179f6718527b1b7c45365de22b6246775..24b5f28be54c01c101587ac27a6e6d75ef5ce4b8 100644 (file)
@@ -885,6 +885,7 @@ namespace System.Web {
                        HttpRuntimeSection config = WebConfigurationManager.GetWebApplicationSection ("system.web/httpRuntime") as HttpRuntimeSection;
                        if (config != null && config.UseFullyQualifiedRedirectUrl) {
                                var ub = new UriBuilder (context.Request.Url);
+                               ub.Path = url;
                                ub.Fragment = null;
                                ub.Password = null;
                                ub.Query = null;