summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2015-06-24 10:12:30 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2015-06-24 10:12:30 -0700
commit9e738e51025fb8e0cc7ca6ff872b1756c9ce84d4 (patch)
tree43d3707e9a2082ae7a96a0a96e76ed6e16b90331
parent92de61aabba908e254b8d4f1498798043fdabbe7 (diff)
This (old...) change makes file:/// sources valid.v1.1.17
-rw-r--r--MobileCydia.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 72950d3..e0adf36 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")]