Skip to content

Commit

Permalink
Fix a crash when a username is not specified with the WebDAV backend
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbertchen committed Jul 3, 2020
1 parent ed8b439 commit 1da7e2b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/duplicacy_storage.go
Expand Up @@ -678,6 +678,10 @@ func CreateStorage(preference Preference, resetPassword bool, threads int) (stor
} else if matched[1] == "webdav" || matched[1] == "webdav-http" {
server := matched[3]
username := matched[2]
if username == "" {
LOG_ERROR("STORAGE_CREATE", "No username is provided to access the WebDAV storage")
return nil
}
username = username[:len(username)-1]
storageDir := matched[5]
port := 0
Expand Down

1 comment on commit 1da7e2b

@gilbertchen
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit has been mentioned on Duplicacy Forum. There might be relevant details there:

https://forum.duplicacy.com/t/cli-release-2-6-0-is-now-available/3912/1

Please sign in to comment.