tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/modules/aaa AccessInterceptor.java
Date Tue, 06 Feb 2001 06:30:58 GMT
costin      01/02/05 22:30:58

  Modified:    src/share/org/apache/tomcat/modules/aaa
                        AccessInterceptor.java
  Log:
  Use Parameters in AccessInterceptor.
  
  Revision  Changes    Path
  1.5       +9 -2      jakarta-tomcat/src/share/org/apache/tomcat/modules/aaa/AccessInterceptor.java
  
  Index: AccessInterceptor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/modules/aaa/AccessInterceptor.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- AccessInterceptor.java	2001/01/29 07:08:45	1.4
  +++ AccessInterceptor.java	2001/02/06 06:30:58	1.5
  @@ -61,6 +61,7 @@
   
   import org.apache.tomcat.core.*;
   import org.apache.tomcat.util.*;
  +import org.apache.tomcat.util.http.*;
   import java.util.*;
   import java.io.*;
   
  @@ -511,8 +512,14 @@
       public void doService(Request req, Response res)
   	throws Exception
       {
  -	String username=req.getParameter( "j_username" );
  -	String password=req.getParameter( "j_password" );
  +	// In order to process the form we need to read the POST
  +	// body, if any
  +	req.handlePostParameters();
  +
  +	Parameters params=req.parameters();
  +	
  +	String username=params.getParameter( "j_username" );
  +	String password=params.getParameter( "j_password" );
   
   	Context ctx=req.getContext();
   	String errorPage=ctx.getFormErrorPage();
  
  
  

Mime
View raw message