Skip to content

Commit

Permalink
Expansion to System.getProperty("user.home") will now only happen if …
Browse files Browse the repository at this point in the history
…path begins with ~/
  • Loading branch information
trondhumbor committed Apr 21, 2015
1 parent 73e077a commit bdece5b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public URL getPath(){
URL out = null;
try {
if(!path.contains("://")){
if(path.contains("~"))
if(path.substring(0, 2).equals("~/"))
out = new File(System.getProperty("user.home") + path.substring(1)).toURI().toURL();
else
out = new File(path).toURI().toURL();
Expand Down

0 comments on commit bdece5b

Please sign in to comment.