File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed
src/main/kotlin/com/coder/gateway Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 8
8
9
9
- support for checking if CLI is signed
10
10
- improved progress reporting while downloading the CLI
11
- - URL validation is stricter in the connection screen
11
+ - URL validation is stricter in the connection screen and URI protocol handler
12
12
13
13
## 2.21.1 - 2025-06-26
14
14
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ fun URL.withPath(path: String): URL = URL(
15
15
if (path.startsWith(" /" )) path else " /$path " ,
16
16
)
17
17
18
-
19
18
fun String.validateStrictWebUrl (): WebUrlValidationResult = try {
20
19
val uri = URI (this )
21
20
Original file line number Diff line number Diff line change @@ -567,7 +567,6 @@ class CoderWorkspacesStepView :
567
567
component.apply () // Force bindings to be filled.
568
568
if (settings.requireTokenAuth) {
569
569
val result = fields.coderURL.validateStrictWebUrl()
570
- val newURL = fields.coderURL.toURL()
571
570
if (result is WebUrlValidationResult .Invalid ) {
572
571
tfUrlComment.apply {
573
572
this ?.foreground = UIUtil .getErrorForeground()
@@ -576,6 +575,7 @@ class CoderWorkspacesStepView :
576
575
}
577
576
return
578
577
}
578
+ val newURL = fields.coderURL.toURL()
579
579
val pastedToken =
580
580
dialogUi.askToken(
581
581
newURL,
You can’t perform that action at this time.
0 commit comments