Werk #2986: Event Console: Text elements of events are now correctly quoted in shell scripts
Component | Event Console | ||||||||||||||||||
Title | Event Console: Text elements of events are now correctly quoted in shell scripts | ||||||||||||||||||
Date | Jan 29, 2016 | ||||||||||||||||||
Level | Trivial Change | ||||||||||||||||||
Class | Bug Fix | ||||||||||||||||||
Compatibility | Compatible - no manual interaction needed | ||||||||||||||||||
Checkmk versions & editions |
|
Text elements (message, comment, contact, etc.) of an event may contain ' and ". The previous Event Console had troubles evaluating these event. Some shell scripts even got stuck..
For example: TEXT=my"text
Shell script: echo $TEXT$ > /tmp/mylog
The actual command looks like echo my"text > /tmp/mylog -> broken command.