Skip to content

Commit

Permalink
Don't load bad urls
Browse files Browse the repository at this point in the history
  • Loading branch information
soffes committed Aug 30, 2010
1 parent f43ed94 commit b48a818
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SSToolkit/SSWebView.m
Expand Up @@ -136,6 +136,10 @@ - (void)loadURL:(NSURL *)aURL {


- (void)loadURLString:(NSString *)string {
if ([string length] < 5) {
return;
}

if ([string hasPrefix:@"http://"] == NO && [string hasPrefix:@"https://"] == NO) {
string = [NSString stringWithFormat:@"http://%@", string];
}
Expand Down

0 comments on commit b48a818

Please sign in to comment.