Skip to content

Commit

Permalink
chore: missing changes for hotfix 20066 (#26228)
Browse files Browse the repository at this point in the history
  • Loading branch information
erickgonzalez committed Sep 21, 2023
1 parent 0424608 commit 6eea94a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dotCMS/src/main/java/com/dotmarketing/util/UtilMethods.java
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,8 @@ public static String getFileExtension(String x, boolean toLowerCase) {
String r = "";
try {
if (x.lastIndexOf(".") != -1) {
return x.substring(x.lastIndexOf(".") + 1).toLowerCase();
final String ext = x.substring(x.lastIndexOf(".") + 1);
return toLowerCase ? ext.toLowerCase(): ext;
} else {
return r;
}
Expand Down

0 comments on commit 6eea94a

Please sign in to comment.