]> git.saurik.com Git - cydia.git/commitdiff
This (old...) change makes file:/// sources valid. v1.1.17
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 24 Jun 2015 17:12:30 +0000 (10:12 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 24 Jun 2015 17:12:30 +0000 (10:12 -0700)
MobileCydia.mm

index 72950d3c390cc9cadb600a70fa09eab8d574c254..e0adf3607d4bb99efdf77c3bd18d581f56d6e54c 100644 (file)
@@ -8625,7 +8625,7 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi
             case 1: {
                 NSString *href = [[alert textField] text];
 
-                static Pcre href_r("^http(s?)://[^# ]*$");
+                static Pcre href_r("^(http(s?)://|file:///)[^# ]*$");
                 if (!href_r(href)) {
                     UIAlertView *alert = [[[UIAlertView alloc]
                         initWithTitle:[NSString stringWithFormat:Colon_, Error_, UCLocalize("INVALID_URL")]