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/config WorkDirSetup.java
Date Sun, 26 Aug 2001 01:52:57 GMT
costin      01/08/25 18:52:57

  Modified:    src/share/org/apache/tomcat/modules/config WorkDirSetup.java
  Log:
  Fix for 457 - problems if the host has a ":" ( like vhost containing port
  number ) and we are on Windows.
  
  Revision  Changes    Path
  1.8       +3 -0      jakarta-tomcat/src/share/org/apache/tomcat/modules/config/WorkDirSetup.java
  
  Index: WorkDirSetup.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/modules/config/WorkDirSetup.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- WorkDirSetup.java	2001/08/24 22:07:05	1.7
  +++ WorkDirSetup.java	2001/08/26 01:52:57	1.8
  @@ -204,6 +204,9 @@
   	sb.append(cm.getWorkDir());
   	sb.append(File.separator);
   	String host=ctx.getHost();
  +	// # 457
  +	if( host!=null )
  +	    host=host.replace(':', '_');
   	if( host==null ) 
   	    sb.append( "DEFAULT" );
   	else
  
  
  

Mime
View raw message