From: Jay Freeman (saurik) Date: Wed, 24 Jun 2015 17:12:30 +0000 (-0700) Subject: This (old...) change makes file:/// sources valid. X-Git-Tag: v1.1.17^0 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/9e738e51025fb8e0cc7ca6ff872b1756c9ce84d4 This (old...) change makes file:/// sources valid. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 72950d3c..e0adf360 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -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")]