Restrict protocol in FilePresenter.

This commit is contained in:
Christian P. MOMON 2013-08-02 00:15:23 +02:00
parent ecaa38e0d0
commit 71bbe4cd21

View file

@ -77,7 +77,7 @@ public class FilePresenter implements Presenter
// Get the good tree. // Get the good tree.
File source; File source;
if (this.sourceFilePathname.matches(".+://.+")) if (this.sourceFilePathname.matches("file://.+"))
{ {
source = new File(new URI(this.sourceFilePathname)); source = new File(new URI(this.sourceFilePathname));
} }