Title: [534] trunk/rails-integration/src/main/java/org/jruby/webapp/FileServlet.java: remove forward double slashes too
- Revision
- 534
- Author
- tirsen
- Date
- 2007-05-04 19:01:40 -0400 (Fri, 04 May 2007)
Log Message
remove forward double slashes too
Modified Paths
Diff
Modified: trunk/rails-integration/src/main/java/org/jruby/webapp/FileServlet.java (533 => 534)
--- trunk/rails-integration/src/main/java/org/jruby/webapp/FileServlet.java 2007-05-04 12:16:20 UTC (rev 533)
+++ trunk/rails-integration/src/main/java/org/jruby/webapp/FileServlet.java 2007-05-04 23:01:40 UTC (rev 534)
@@ -84,7 +84,7 @@
} else {
realPath = directory + relativePath;
}
- realPath = realPath.replaceAll("\\\\", "/");
+ realPath = realPath.replaceAll("\\\\", "/").replaceAll("//", "/");
// check the file and open it
File file = new File(realPath);
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel