diff --git a/iOS/offlineguides/GuideVC.mm b/iOS/offlineguides/GuideVC.mm index b7aca8f..baf4ce2 100644 --- a/iOS/offlineguides/GuideVC.mm +++ b/iOS/offlineguides/GuideVC.mm @@ -88,7 +88,8 @@ else v = [self.navigationController.viewControllers objectAtIndex:0]; NSRange r = [str rangeOfString:@"." options:NSBackwardsSearch]; - self.navigationItem.title = [v getArticleName:[str substringToIndex:r.location]]; + if (r.length && [[str substringFromIndex:r.location + 1] isEqualToString:@"html"]) + self.navigationItem.title = [v getArticleName:[str substringToIndex:r.location]]; [self.webPages addObject:str]; if ([self isImage:str]) self.webView.scalesPageToFit = YES;