We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
external-ui-name
1 parent d036d98 commit 608ddb1Copy full SHA for 608ddb1
config/config.go
@@ -7,6 +7,7 @@ import (
7
"net"
8
"net/netip"
9
"net/url"
10
+ "path/filepath"
11
"strings"
12
"time"
13
_ "unsafe"
@@ -759,6 +760,9 @@ func parseController(cfg *RawConfig) (*Controller, error) {
759
760
if path := cfg.ExternalUI; path != "" && !C.Path.IsSafePath(path) {
761
return nil, C.Path.ErrNotSafePath(path)
762
}
763
+ if uiName := cfg.ExternalUIName; uiName != "" && !filepath.IsLocal(uiName) {
764
+ return nil, fmt.Errorf("external UI name is not local: %s", uiName)
765
+ }
766
return &Controller{
767
ExternalController: cfg.ExternalController,
768
ExternalUI: cfg.ExternalUI,
0 commit comments