This GitLab instance reached the end of its service life. It won't be possible to create new users or projects.

Please read the deprecation notice for more information concerning the deprecation timeline

Visit migration.git.tu-berlin.de (internal network only) to import your old projects to the new GitLab platform 📥

Commit 27fa5d88 by Nico Suhl

append http:// to url if protocol is not delivered

parent 19f393a3
......@@ -96,10 +96,13 @@ public class LoginFragment extends DialogFragment implements OnEditorActionListe
return;
}
// make sure URL ends with slash
// make sure URL has protocol ends with slash
String k4everUrl = mServerURL.getText().toString();
if (!k4everUrl.endsWith("/"))
k4everUrl += "/";
if (!k4everUrl.startsWith("http"))
k4everUrl = "http://" + k4everUrl;
final String k4everApiUrl = k4everUrl + KassenConfig.KASSEN_SUBDIR_API;
final Editor prefs = PreferenceManager.getDefaultSharedPreferences(getActivity()).edit();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment