From 71bbe4cd21185af4945acae8db879c9bfd86eba3 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Fri, 2 Aug 2013 00:15:23 +0200 Subject: [PATCH] Restrict protocol in FilePresenter. --- src/fr/devinsy/xidyn/presenters/FilePresenter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fr/devinsy/xidyn/presenters/FilePresenter.java b/src/fr/devinsy/xidyn/presenters/FilePresenter.java index 35be10f..5601271 100644 --- a/src/fr/devinsy/xidyn/presenters/FilePresenter.java +++ b/src/fr/devinsy/xidyn/presenters/FilePresenter.java @@ -77,7 +77,7 @@ public class FilePresenter implements Presenter // Get the good tree. File source; - if (this.sourceFilePathname.matches(".+://.+")) + if (this.sourceFilePathname.matches("file://.+")) { source = new File(new URI(this.sourceFilePathname)); }