Closes #291: add https for self-hosted
This commit is contained in:
parent
ae0f8157f1
commit
eaf3df0708
1 changed files with 3 additions and 2 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue