Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-21536

Backslash is not escaped when using trigger wizard

XMLWordPrintable

    • Sprint 91 (Aug 2022), Sprint 92 (Sep 2022)
    • 0.5

      Steps to reproduce:

      1. Open trigger form
      2. Open expression wizard modal
      3. Select string function "find"
      4. Set "V" field value to "\n"
      5. Press Insert

      Result:
      Expression is set to:

      find(/host/item,,,"\n")="\\r"
      

      Expected:
      Backslash in function quoted parameters is escaped.

      find(/host/item,,,"\\n")="\\r"
      

            gcalenko Gregory Chalenko
            gcalenko Gregory Chalenko
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: