We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 367e770 commit 1d79415Copy full SHA for 1d79415
1 file changed
internal/pkg/auth/user_login.go
@@ -340,8 +340,12 @@ func cleanup(server *http.Server) {
340
}()
341
}
342
343
-func openBrowser(pageUrl string) error {
344
- var err error
+func openBrowser(pageUrl string) (err error) {
+ err = utils.ValidateURLDomain(pageUrl)
345
+ if err != nil {
346
+ return err
347
+ }
348
+
349
switch runtime.GOOS {
350
case "freebsd", "linux":
351
// We need to use the windows way on WSL, otherwise we do not pass query
0 commit comments