canonicalize download / incomplete locations before testing

This commit is contained in:
Zlatin Balevsky
2020-03-19 16:19:43 +00:00
parent 7a6538beff
commit 31a607ed7d

View File

@@ -105,6 +105,7 @@ public class ConfigurationServlet extends HttpServlet {
private static File getDirectory(String s) throws Exception {
File f = new File(s);
f = f.getCanonicalFile();
if (!f.exists())
throw new Exception(Util._t("Bad input") + ":" + Util._t("{0} does not exist",s));
if (!f.isDirectory())