Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Nov 21, 2018
1 parent 5ecd9ca commit 58112f6
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -183,11 +183,12 @@ public static List<MapRenderer> removeDenizenRenderers(MapView map) {
public static String getActualFile(String file) {
String fileLower = CoreUtilities.toLowerCase(file);
if (!fileLower.startsWith("http://") && !fileLower.startsWith("https://")) {
File f = new File(imagesFolder, file).getPath();
File f = new File(imagesFolder, file);
if (!Utilities.canReadFile(f)) {
dB.echoError("Server config denies reading files in that location.");
return null;
}
return f.getPath();
}
else {
try {
Expand Down

0 comments on commit 58112f6

Please sign in to comment.