You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by sr...@apache.org on 2022/08/05 16:22:17 UTC
[plc4x] 02/02: fix(plc4xbrowser): fixed command escaping when using brackets
This is an automated email from the ASF dual-hosted git repository.
sruehl pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git
commit 5ce93fbd9dca87b3c17e9eb676471e6d9c1a6aad
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Fri Aug 5 18:20:36 2022 +0200
fix(plc4xbrowser): fixed command escaping when using brackets
---
plc4go/tools/plc4xbrowser/actions.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plc4go/tools/plc4xbrowser/actions.go b/plc4go/tools/plc4xbrowser/actions.go
index 31ccda044..6f9f581bb 100644
--- a/plc4go/tools/plc4xbrowser/actions.go
+++ b/plc4go/tools/plc4xbrowser/actions.go
@@ -67,7 +67,7 @@ func initSubsystem() {
func outputCommandHistory() {
_, _ = fmt.Fprintln(commandOutput, "[#0000ff]Last 10 commands[white]")
for i, command := range config.History.Last10Commands {
- _, _ = fmt.Fprintf(commandOutput, " [#00ff00]%d[white]: [\"%d\"]%s[\"\"]\n", i, i, command)
+ _, _ = fmt.Fprintf(commandOutput, " [#00ff00]%d[white]: [\"%d\"]%s[\"\"]\n", i, i, tview.Escape(command))
}
}