summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorSam Bingner <sam@bingner.com>2018-10-15 15:00:44 -1000
committerSam Bingner <sam@bingner.com>2018-10-15 15:38:07 -1000
commit89afe2061e0fc081bdacc8cb298a460b8a612ecb (patch)
treecc3b280ef100155684b83a9f2bf4a845fd6b18ec /MobileCydia.mm
parentee5fa6a9e4cf85553bc7ad2511ca3b6a18c32dfa (diff)
Refuse to load electra reposv1.1.32%b4
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index d95bbdb..5242fbb 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -753,7 +753,7 @@ bool isSectionVisible(NSString *section) {
static NSString *VerifySource(NSString *href) {
static RegEx href_r("(http(s?)://|file:///)[^# ]*");
- if (!href_r(href)) {
+ if (!href_r(href) || [href rangeOfString:@"electra" options:NSCaseInsensitiveSearch].location != NSNotFound) {
[[[[UIAlertView alloc]
initWithTitle:[NSString stringWithFormat:Colon_, Error_, UCLocalize("INVALID_URL")]
message:UCLocalize("INVALID_URL_EX")