]> git.saurik.com Git - cydia.git/commitdiff
Neuter the diversion mechanism: appcache FAIL.
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 28 Feb 2011 19:42:35 +0000 (11:42 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 7 Mar 2011 10:41:29 +0000 (02:41 -0800)
MobileCydia.mm

index e8ee0c7dcf6f95533588866a0be5272d77136e98..18f1a0eac3ce2573a12653295cbe8b9f4e66b4a2 100644 (file)
@@ -4637,11 +4637,13 @@ static NSMutableSet *Diversions_;
         [window setValue:cydia_ forKey:@"cydia"];
 }
 
+- (NSURL *) URLWithURL:(NSURL *)url {
+    return [Diversion divertURL:url];
+}
+
 - (NSURLRequest *) webView:(WebView *)view resource:(id)resource willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)response fromDataSource:(WebDataSource *)source {
     NSMutableURLRequest *copy([[super webView:view resource:resource willSendRequest:request redirectResponse:response fromDataSource:source] mutableCopy]);
 
-    [copy setURL:[Diversion divertURL:[copy URL]]];
-
     if (System_ != NULL)
         [copy setValue:System_ forHTTPHeaderField:@"X-System"];
     if (Machine_ != NULL)