]> git.saurik.com Git - cydia.git/commitdiff
Fix the System user-agent component (this rotted).
authorJay Freeman (saurik) <saurik@saurik.com>
Sun, 5 Mar 2017 05:21:53 +0000 (21:21 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Sun, 5 Mar 2017 05:21:53 +0000 (21:21 -0800)
MobileCydia.mm

index 9c2b524e9ed7ec153f7a459671d6f6c164a0dec2..5a79c81d8a917f49d3c13cd1ecbcb6f51bb98cb5 100644 (file)
@@ -10014,7 +10014,7 @@ int main(int argc, char *argv[]) {
     UniqueID_ = UniqueIdentifier(device);
 
     if (NSDictionary *info = [NSDictionary dictionaryWithContentsOfFile:@"/Applications/MobileSafari.app/Info.plist"]) {
-        Product_ = [info objectForKey:@"SafariProductVersion"];
+        Product_ = [info objectForKey:@"SafariProductVersion"] ?: [info objectForKey:@"CFBundleShortVersionString"];
         Safari_ = [info objectForKey:@"CFBundleVersion"];
     }