]> git.saurik.com Git - cydia.git/commitdiff
Disallow serializing error URLs to the state.
authorJay Freeman (saurik) <saurik@saurik.com>
Sat, 5 Mar 2011 12:55:46 +0000 (04:55 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 7 Mar 2011 10:41:37 +0000 (02:41 -0800)
CyteKit/WebViewController.mm

index e67e6bc351693a66e5c87d4ecc075da036c7cb1b..d98bf231c2a92a2129394a003d3937cfa6168bf6 100644 (file)
@@ -421,7 +421,7 @@ float CYScrollViewDecelerationRateNormal;
 }
 
 - (void) webView:(WebView *)view didDecidePolicy:(CYWebPolicyDecision)decision forNavigationAction:(NSDictionary *)action request:(NSURLRequest *)request frame:(WebFrame *)frame {
-    if (decision == CYWebPolicyDecisionUse)
+    if (decision == CYWebPolicyDecisionUse && !error_)
         request_ = request;
 }