summaryrefslogtreecommitdiff
path: root/src/se/leap
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2013-06-04 17:09:28 +0200
committerParménides GV <parmegv@sdf.org>2013-06-04 17:09:28 +0200
commit46bc4830705bc0a21f28d3e7b3899c2a978f4915 (patch)
tree41c71a7331172081e83d052276a534e95eb18e69 /src/se/leap
parentac47aab124d63add14189cb3d03e3a05361a7932 (diff)
Fix bug #2717.
"https://" is automatically appended.
Diffstat (limited to 'src/se/leap')
-rw-r--r--src/se/leap/leapclient/NewProviderDialog.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/se/leap/leapclient/NewProviderDialog.java b/src/se/leap/leapclient/NewProviderDialog.java
index 99788001..07185b47 100644
--- a/src/se/leap/leapclient/NewProviderDialog.java
+++ b/src/se/leap/leapclient/NewProviderDialog.java
@@ -52,6 +52,9 @@ public class NewProviderDialog extends DialogFragment {
.setPositiveButton(R.string.save, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
String entered_url = url_input_field.getText().toString().trim();
+ if(!entered_url.startsWith("https://")) {
+ entered_url = "https://".concat(entered_url);
+ }
boolean danger_on = danger_checkbox.isChecked();
if(validURL(entered_url)) {
interface_with_ConfigurationWizard.saveProvider(entered_url, danger_on);