tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jk/java/org/apache/ajp/tomcat4 Ajp13Request.java
Date Fri, 15 Feb 2002 00:54:43 GMT
remm        02/02/14 16:54:43

  Modified:    jk/java/org/apache/ajp/tomcat4 Ajp13Request.java
  Log:
  - Apply fix for 5647 and 6219.
  - Patch submitted by Jonathan Pierce <jonathan.pierce at seagram.com>
  
  Revision  Changes    Path
  1.7       +3 -1      jakarta-tomcat-connectors/jk/java/org/apache/ajp/tomcat4/Ajp13Request.java
  
  Index: Ajp13Request.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/ajp/tomcat4/Ajp13Request.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- Ajp13Request.java	31 Jan 2002 17:18:51 -0000	1.6
  +++ Ajp13Request.java	15 Feb 2002 00:54:43 -0000	1.7
  @@ -113,8 +113,10 @@
           setServerPort(ajp.getServerPort());
   
           String remoteUser = ajp.remoteUser().toString();
  -        if (remoteUser != null) {
  +        if ((remoteUser != null) && (!(remoteUser.equals("")))) {
               setUserPrincipal(new Ajp13Principal(remoteUser));
  +        } else {
  +            setUserPrincipal(null);
           }
   
           setAuthType(ajp.authType().toString());
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message