mirror of
https://github.com/Alfresco/alfresco-transform-core.git
synced 2026-09-16 18:12:54 +00:00
ACS-11995 Fix badSourceFilename regression and upgrade Spring Boot to 4.0.7 (#1303)
This commit is contained in:
+2
-2
@@ -107,8 +107,8 @@ public class FileManager
|
||||
*/
|
||||
private static String checkFilename(boolean source, String filename)
|
||||
{
|
||||
filename = filename == null ? "" : new File(filename).getName();
|
||||
if (filename.isEmpty())
|
||||
filename = getFilename(filename);
|
||||
if (filename == null || filename.isEmpty())
|
||||
{
|
||||
String sourceOrTarget = source ? "source" : "target";
|
||||
HttpStatus statusCode = source ? BAD_REQUEST : INTERNAL_SERVER_ERROR;
|
||||
|
||||
Reference in New Issue
Block a user