diff --git a/cmd/wsh/cmd/wshcmd-setmeta.go b/cmd/wsh/cmd/wshcmd-setmeta.go index 252319abc..88ff7b451 100644 --- a/cmd/wsh/cmd/wshcmd-setmeta.go +++ b/cmd/wsh/cmd/wshcmd-setmeta.go @@ -28,7 +28,7 @@ func init() { func parseMetaSets(metaSets []string) (map[string]interface{}, error) { meta := make(map[string]interface{}) for _, metaSet := range metaSets { - fields := strings.Split(metaSet, "=") + fields := strings.SplitN(metaSet, "=", 2) if len(fields) != 2 { return nil, fmt.Errorf("invalid meta set: %q", metaSet) } diff --git a/frontend/app/app.tsx b/frontend/app/app.tsx index 9f5c5da12..f06190020 100644 --- a/frontend/app/app.tsx +++ b/frontend/app/app.tsx @@ -172,6 +172,9 @@ function processBackgroundUrls(cssText: string): string { hasJSUrl = true; return; } + if (originalUrl.startsWith("data:")) { + return; + } const newUrl = encodeFileURL(originalUrl); node.value = newUrl; },