Skip to content

Commit

Permalink
Escape pipe character in extended data (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
aslafy-z authored Oct 5, 2020
1 parent 606b110 commit bc48bbd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nagplug/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,8 @@ def add_extdata(self, message):
arguments:
message: a free-form string
"""
self._extdata.append(str(message))
message = str(message).replace('|', '!')
self._extdata.append()

def get_extdata(self):
"""
Expand Down

0 comments on commit bc48bbd

Please sign in to comment.