Commit ad11e28d authored by neo's avatar neo

[bugfix] fix sub extention for filename throw indexout or range excetpion

parent a323707f
......@@ -150,8 +150,7 @@ public class OutputInvoiceController {
}
private String GetExtension(String file) {
return file.substring(file.lastIndexOf(".") + 1, file.length()
- file.lastIndexOf("."));
return file.substring(file.lastIndexOf(".") + 1, file.length());
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment