Commit bc9589f8 authored by Felipe Borges's avatar Felipe Borges
Browse files

assistant: Validate server address

The URI needs to have at least a scheme and a server address.

Fixes #58
parent a0b3586d
Pipeline #299636 passed with stages
in 4 minutes and 49 seconds
......@@ -44,7 +44,7 @@ namespace Connections {
}
var uri = Xml.URI.parse (url_entry.text);
if (uri == null || uri.scheme == null || uri.path != null) {
if (uri == null || uri.scheme == null || uri.path != null || uri.server == null) {
create_button.sensitive = false;
return;
......
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