cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rica...@locus.apache.org
Subject cvs commit: xml-cocoon/src/org/apache/cocoon/processor/xsp/library XSPContextLibrary.java
Date Sun, 23 Jan 2000 22:52:48 GMT
ricardo     00/01/23 14:52:48

  Modified:    src/org/apache/cocoon/processor/xsp/library
                        XSPContextLibrary.java
  Log:
  Changed getRealPath to normalize slashes in filenames. Thanks to Sean Timm
  
  Revision  Changes    Path
  1.4       +1 -1      xml-cocoon/src/org/apache/cocoon/processor/xsp/library/XSPContextLibrary.java
  
  Index: XSPContextLibrary.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/processor/xsp/library/XSPContextLibrary.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- XSPContextLibrary.java	2000/01/09 02:46:58	1.3
  +++ XSPContextLibrary.java	2000/01/23 22:52:48	1.4
  @@ -173,7 +173,7 @@
   
     public static Element getRealPath(ServletContext context, String path, Document document)
{
       Element element = document.createElement("context:real-path");
  -    element.appendChild(document.createTextNode(context.getRealPath(path)));
  +    element.appendChild(document.createTextNode(context.getRealPath(path).replace('\\',
'/')));
       return element;
     }
   
  
  
  

Mime
View raw message