mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-02-12 01:01:50 +01:00
This commit is contained in:
parent
0c9f35791d
commit
9521e1d51b
@ -140,7 +140,8 @@ func setBgRun(cmd *cobra.Command, args []string) (rtnErr error) {
|
||||
}
|
||||
|
||||
// Create URL-safe path
|
||||
escapedPath := strings.ReplaceAll(absPath, "'", "\\'")
|
||||
escapedPath := strings.ReplaceAll(absPath, "\\", "\\\\")
|
||||
escapedPath = strings.ReplaceAll(escapedPath, "'", "\\'")
|
||||
bgStyle = fmt.Sprintf("url('%s')", escapedPath)
|
||||
|
||||
switch {
|
||||
|
Loading…
Reference in New Issue
Block a user