Skip to content

Commit

Permalink
chore: Including hotfix-20066 (#26145)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcastro-dotcms committed Sep 17, 2023
1 parent 606d358 commit 2d3d63f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ public String getRealAssetPath(String inode, String fileName, String ext) {
@Override
public String getRealAssetPath(String inode, String fileName) {

String extension = UtilMethods.getFileExtension(fileName);
String extension = UtilMethods.getFileExtension(fileName, false);
String fileNameWOExtenstion = UtilMethods.getFileName(fileName);


Expand Down
5 changes: 5 additions & 0 deletions dotCMS/src/main/java/com/dotmarketing/util/UtilMethods.java
Original file line number Diff line number Diff line change
Expand Up @@ -968,6 +968,11 @@ public static final String wrapLines(String original, int wrap) {
}

public static String getFileExtension(String x) {
return getFileExtension(x, true);
}

public static String getFileExtension(String x, boolean toLowerCase) {

String r = "";
try {
if (x.lastIndexOf(".") != -1) {
Expand Down

0 comments on commit 2d3d63f

Please sign in to comment.