Fixed critical bug in protocol prepending logic

This commit is contained in:
Rohit Awate 2018-06-04 15:40:03 +05:30
parent 6e74b4dbab
commit 4c6ab95cff
No known key found for this signature in database
GPG key ID: 1051D7B79CF2EE25

View file

@ -185,7 +185,7 @@ public class DashboardController implements Initializable {
String address = addressField.getText();
// Prepends "https://" to the address if not already done.
if (!address.startsWith("https://") || !address.startsWith("http://")) {
if (!(address.startsWith("https://") || address.startsWith("http://"))) {
address = "https://" + address;
addressField.setText(address);
responseArea.requestFocus();