diff options
author | Daniil Baturin <daniil@baturin.org> | 2018-11-29 01:49:55 +0100 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2018-11-29 01:50:41 +0100 |
commit | 354c20aa8046d63cad9206810a51d52a2ce65a5e (patch) | |
tree | 8e69dc3bde5c72a4c2c25640047eb4172691d30e /src | |
parent | e2aca14130f3a1a4587764af2dee9c733a4a8b02 (diff) | |
download | vyos-1x-354c20aa8046d63cad9206810a51d52a2ce65a5e.tar.gz vyos-1x-354c20aa8046d63cad9206810a51d52a2ce65a5e.zip |
T1001: escape backslashes in the input in the commands pipe as well.
Diffstat (limited to 'src')
-rwxr-xr-x | src/helpers/commands-pipe.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/helpers/commands-pipe.py b/src/helpers/commands-pipe.py index 1120bb09e..ab68ccade 100755 --- a/src/helpers/commands-pipe.py +++ b/src/helpers/commands-pipe.py @@ -9,6 +9,7 @@ from vyos.configtree import ConfigTree signal(SIGPIPE,SIG_DFL) config_string = sys.stdin.read().strip() +config_string = config_string.replace("\\", "\\\\") if not config_string: sys.exit(0) |