Commit b4fb9d23 authored by Andrea Scarpino's avatar Andrea Scarpino

Do not allow hosts with non standard characters

parent 4ade3fb1
......@@ -110,6 +110,7 @@ Page {
focus: true
inputMethodHints: Qt.ImhNoAutoUppercase | Qt.ImhUrlCharactersOnly
placeholderText: qsTr("An IP address or hostname")
validator: RegExpValidator { regExp: /^[\w\.-]*$/ }
onTextChanged: {
button.enabled = text.length > 0;
......
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