2010-02-15 Gonzalo Paniagua Javier <gonzalo@novell.com>
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Mon, 15 Feb 2010 23:12:23 +0000 (23:12 -0000)
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Mon, 15 Feb 2010 23:12:23 +0000 (23:12 -0000)
* SoapDocumentationHandler.cs: use IndexOf() instead of LastIndexOf()
when removing the querystring from the url.

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

mcs/class/System.Web.Services/System.Web.Services.Protocols/ChangeLog
mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapDocumentationHandler.cs

index ea6f05bdc9377b18d4fccc34bcd72a110342396f..026fb33b73169c5c201ffbad949f4209dccafab3 100644 (file)
@@ -1,3 +1,8 @@
+2010-02-15 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * SoapDocumentationHandler.cs: use IndexOf() instead of LastIndexOf()
+       when removing the querystring from the url.
+
 2009-10-16  Miguel de Icaza  <miguel@novell.com>
 
        * ServerType.cs: Do not use Activator.CreateInstance, use the call
index 73265c9f628a4a26fe2dc66e8c9b3d568b5d3091..178161b1c95c0c7a836f3d770efff2511fb2f7cd 100644 (file)
@@ -59,7 +59,7 @@ namespace System.Web.Services.Protocols
                public SoapDocumentationHandler (Type type, HttpContext context): base (type)
                {
                        _url = context.Request.Url.ToString();
-                       int i = _url.LastIndexOf ('?');
+                       int i = _url.IndexOf ('?');
                        if (i != -1) _url = _url.Substring (0,i);
                        _typeStubInfo = (SoapTypeStubInfo) TypeStubManager.GetTypeStub (ServiceType, "Soap");