remm        02/03/10 23:14:22

  Modified:    coyote/src/java/org/apache/coyote/tomcat4 CoyoteRequest.java
  Log:
  - The query string should return null if it's empty.
  
  Revision  Changes    Path
  1.9       +10 -5     
jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat4/CoyoteRequest.java
  
  Index: CoyoteRequest.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat4/CoyoteRequest.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- CoyoteRequest.java        9 Mar 2002 05:47:45 -0000       1.8
  +++ CoyoteRequest.java        11 Mar 2002 07:14:22 -0000      1.9
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat4/CoyoteRequest.java,v
 1.8 2002/03/09 05:47:45 remm Exp $
  - * $Revision: 1.8 $
  - * $Date: 2002/03/09 05:47:45 $
  + * $Header: 
/home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat4/CoyoteRequest.java,v
 1.9 2002/03/11 07:14:22 remm Exp $
  + * $Revision: 1.9 $
  + * $Date: 2002/03/11 07:14:22 $
    *
    * ====================================================================
    *
  @@ -122,7 +122,7 @@
    *
    * @author Remy Maucherat
    * @author Craig R. McClanahan
  - * @version $Revision: 1.8 $ $Date: 2002/03/09 05:47:45 $
  + * @version $Revision: 1.9 $ $Date: 2002/03/11 07:14:22 $
    */
   
   public class CoyoteRequest
  @@ -1507,7 +1507,12 @@
        * Return the query string associated with this request.
        */
       public String getQueryString() {
  -        return (coyoteRequest.queryString().toString());
  +        String queryString = coyoteRequest.queryString().toString();
  +        if (queryString.equals("")) {
  +            return (null);
  +        } else {
  +            return queryString;
  +        }
       }
   
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to