Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Revert "protocol prefix test was incorrect"

This reverts commit bd945f4.
  • Loading branch information...
commit 3836d8d972c37c99e28cec0fc3dc889a8bc0c853 1 parent bd945f4
@thatcher authored
View
BIN  WEB-INF/classes/claypool/server/FileMonitor$1.class
Binary file not shown
View
BIN  WEB-INF/classes/claypool/server/Shell.class
Binary file not shown
View
4 WEB-INF/classes/claypool/server/Shell.java
@@ -108,9 +108,7 @@ public Object callGlobalFunction(String methodName, Object[] args) {
}
private void processFile(String fileName){
- if(!(fileName.startsWith("file:") ||
- fileName.startsWith("http:") ||
- fileName.startsWith("https:"))){
+ if(!fileName.matches("^(file|http|https)")){
String absoluteFileName = this.basePath + fileName;
this.processAbsoluteFile(absoluteFileName);
}else{
View
BIN  dist/claypool.0.2.jar
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.