diff --git a/src/main/java/org/roda_project/commons_ip2/validator/utils/DecoderUtils.java b/src/main/java/org/roda_project/commons_ip2/validator/utils/DecoderUtils.java index e7fdffc6..5c7c2a72 100644 --- a/src/main/java/org/roda_project/commons_ip2/validator/utils/DecoderUtils.java +++ b/src/main/java/org/roda_project/commons_ip2/validator/utils/DecoderUtils.java @@ -8,7 +8,10 @@ public class DecoderUtils { public static String normalizePath(String href) { - return Paths.get(href).normalize().toString(); + + return Paths.get(href).normalize() // Removes unnecessary elements (like "." or "..") + .toString().replace("\\", "/"); // Assure it returns in unix-style format + } }