Fix #228: Trim URL strings before saving
This commit is contained in:
parent
b6f94f8814
commit
97368eb8a8
3 changed files with 4 additions and 4 deletions
|
|
@ -22,7 +22,7 @@ class SSHKeySettingTableViewController: UITableViewController {
|
|||
|
||||
|
||||
@IBAction func doneButtonTapped(_ sender: UIButton) {
|
||||
guard let privateKeyURL = URL(string: privateKeyURLTextField.text!) else {
|
||||
guard let privateKeyURL = URL(string: privateKeyURLTextField.text!.trimmed) else {
|
||||
Utils.alert(title: "Cannot Save", message: "Please set Private Key URL first.", controller: self, completion: nil)
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue