Closes #291: add https for self-hosted

This commit is contained in:
Patrick Santana 2013-05-13 15:24:13 +02:00
parent ae0f8157f1
commit eaf3df0708

View file

@ -160,10 +160,11 @@
NSURL *url;
if ([text rangeOfString:@"http://"].location == NSNotFound) {
if ([text rangeOfString:@"http://"].location == NSNotFound
&& [text rangeOfString:@"https://"].location == NSNotFound) {
#ifdef DEVELOPMENT_ENABLED
NSLog(@"URL does not contain http://");
NSLog(@"URL does not contain http:// or https://");
#endif
NSString *urlString = [[NSString alloc] initWithFormat:@"http://%@",text];