diff --git a/config.template.js b/config.template.js
index 2173a88..3f8a991 100644
--- a/config.template.js
+++ b/config.template.js
@@ -122,4 +122,7 @@
'car-test'
];
}
+
+ // regex needs to be in sync with server, see ServerHandler.getTrackName()
+ BR.conf.tracknameAllowedChars = 'a-zA-Z0-9 \\._\\-';
})();
diff --git a/css/style.css b/css/style.css
index 25126bd..6bc2641 100644
--- a/css/style.css
+++ b/css/style.css
@@ -119,6 +119,20 @@ footer {
margin-bottom: 0;
}
+input#trackname:invalid,
+input#trackname:focus:invalid {
+ border-color: orange;
+}
+:not(output):-moz-ui-invalid:not(:focus),
+:not(output):-moz-ui-invalid:-moz-focusring:not(:focus) {
+ box-shadow: none;
+}
+
+.validation-warning {
+ color: orange;
+ font-size: small;
+}
+
/*
* elevation diagram
*/
diff --git a/index.html b/index.html
index 2ac0b80..04f7452 100644
--- a/index.html
+++ b/index.html
@@ -594,6 +594,10 @@
class="form-control"
id="trackname"
/>
+