Skip to content

Commit 26f9ec9

Browse files
committed
Merge branch 'hotfix/domain'
2 parents e6b8ec4 + b7b8d38 commit 26f9ec9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uPic/Models/HostConfig.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ class HostConfig: NSObject, Codable {
154154
self.setValue(domain, forKey: "domain")
155155
}
156156

157-
if (!domain.hasPrefix("http://") && !domain.hasPrefix("https://")) {
157+
if (!domain.isEmpty && !domain.hasPrefix("http://") && !domain.hasPrefix("https://")) {
158158
domain = "http://\(domain)"
159159
self.setValue(domain, forKey: "domain")
160160
}

0 commit comments

Comments
 (0)