mirror of
https://github.com/swisspol/GCDWebServer.git
synced 2026-04-24 00:00:04 +08:00
Fall back to "CFBundleName" in GCDWebUploader footer if "CFBundleDisplayName" is not defined
This commit is contained in:
@@ -118,6 +118,9 @@ NS_ASSUME_NONNULL_END
|
||||
NSString* footer = server.footer;
|
||||
if (footer == nil) {
|
||||
NSString* name = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleDisplayName"];
|
||||
if (name == nil) {
|
||||
name = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleName"];
|
||||
}
|
||||
NSString* version = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"];
|
||||
#if !TARGET_OS_IPHONE
|
||||
if (!name && !version) {
|
||||
|
||||
Reference in New Issue
Block a user