git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4e4696
)
JAL-2465 fix to prevent files loaded from the system's temporary directory from being...
author
tcofoegbu
<tcnofoegbu@dundee.ac.uk>
Fri, 26 May 2017 13:48:44 +0000
(14:48 +0100)
committer
tcofoegbu
<tcnofoegbu@dundee.ac.uk>
Fri, 26 May 2017 13:48:44 +0000
(14:48 +0100)
src/jalview/io/FileLoader.java
patch
|
blob
|
history
diff --git
a/src/jalview/io/FileLoader.java
b/src/jalview/io/FileLoader.java
index
8b753e6
..
bd8bc53
100755
(executable)
--- a/
src/jalview/io/FileLoader.java
+++ b/
src/jalview/io/FileLoader.java
@@
-208,6
+208,12
@@
public class FileLoader implements Runnable
// refer to it as.
return;
}
+ if (file != null
+ && file.indexOf(System.getProperty("java.io.tmpdir")) > -1)
+ {
+ // ignore files loaded from the system's temporary directory
+ return;
+ }
String type = protocol == DataSourceType.FILE ? "RECENT_FILE"
: "RECENT_URL";