summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2017-03-04 21:21:53 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2017-03-04 21:21:53 -0800
commit8511eb452e6188051960d2d96473a7810f85f5f2 (patch)
tree8837d4693c90dccb736d5218285804785bf71290
parente7783492d5df3db416020d9a4aa5c36222f17ef4 (diff)
Fix the System user-agent component (this rotted).
-rw-r--r--MobileCydia.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 9c2b524..5a79c81 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -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"];
}