Skip to content

Commit

Permalink
refactor : getImgFileName URL 프로토콜 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
KimTaeWook committed Jun 2, 2024
1 parent 63561a0 commit 34b8cbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/syncd/domain/project/Project.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ private List<UserInProject> userInProjectsFromUsers(String hostId){

public String getImgFileName() {
try {
URL url = new URL(img);
URL url = new URL("https://" + img);
String path = url.getPath();
return path.substring(path.lastIndexOf('/') + 1);
} catch (Exception e) {
Expand Down

0 comments on commit 34b8cbf

Please sign in to comment.