xml-rpc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject cvs commit: xml-rpc/src/java/org/apache/xmlrpc XmlRpcServer.java
Date Thu, 15 Aug 2002 20:37:11 GMT
dlr         2002/08/15 13:37:11

  Modified:    src/java/org/apache/xmlrpc XmlRpcServer.java
  Log:
  Invoker.execute(): Sanity check to prevent indexing off the end of the
  XML-RPC method name.
  
  Revision  Changes    Path
  1.31      +2 -2      xml-rpc/src/java/org/apache/xmlrpc/XmlRpcServer.java
  
  Index: XmlRpcServer.java
  ===================================================================
  RCS file: /home/cvs/xml-rpc/src/java/org/apache/xmlrpc/XmlRpcServer.java,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -u -r1.30 -r1.31
  --- XmlRpcServer.java	15 Aug 2002 20:03:43 -0000	1.30
  +++ XmlRpcServer.java	15 Aug 2002 20:37:11 -0000	1.31
  @@ -517,7 +517,7 @@
           // The last element of the XML-RPC method name is the Java
           // method name.
           int dot = methodName.lastIndexOf('.');
  -        if (dot > -1)
  +        if (dot > -1 && dot + 1 < methodName.length())
           {
               methodName = methodName.substring(dot + 1);
           }
  
  
  

Mime
View raw message