Trim whitespace and trailing slashes from a user entered homeserver address.

This commit is contained in:
Doug
2022-06-20 10:58:24 +01:00
committed by Doug
parent b025f202c7
commit 6cb4a8cf04
7 changed files with 46 additions and 4 deletions

View File

@@ -30,6 +30,8 @@
#import "MXKSwiftHeader.h"
#import "GeneratedInterface-Swift.h"
@interface MXKAuthenticationViewController ()
{
/**
@@ -1626,7 +1628,7 @@
- (void)updateRESTClient
{
NSString *homeserverURL = _homeServerTextField.text;
NSString *homeserverURL = [HomeserverAddress sanitized:_homeServerTextField.text];
if (homeserverURL.length)
{