Commit 1f8987df authored by Djorkaeff Alexandre's avatar Djorkaeff Alexandre

[FIX] Invalid URL Port

parent d1c63066
......@@ -201,6 +201,11 @@ class NewServerView extends React.Component {
url = parsedUrl.host;
}
// host never can contain a ':'
if (parsedUrl.host.includes(':')) {
return '';
}
url = url && url.replace(/\s/g, '');
if (/^(\w|[0-9-_]){3,}$/.test(url)
......
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