diff options
| author | Daniel Friesel <derf@finalrewind.org> | 2017-11-26 16:17:31 +0100 |
|---|---|---|
| committer | Daniel Friesel <derf@finalrewind.org> | 2017-11-26 16:17:31 +0100 |
| commit | 6d1c6dbc5fd7d1153244bee448c3f368b47115ea (patch) | |
| tree | 1e66418c488e3db586cc182b6ff2258e1beacd77 | |
| parent | 585c099f0f554905e720ce558bb1c6343847542b (diff) | |
Allow //foo as escape for literal /foo messages
| -rwxr-xr-x | bin/mqtt-multipub | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/mqtt-multipub b/bin/mqtt-multipub index 40eba91..255220c 100755 --- a/bin/mqtt-multipub +++ b/bin/mqtt-multipub @@ -33,6 +33,8 @@ sub parse_content_string { } return $content; } + # Allow //foo as escape for literal /foo messages + $raw_content =~ s{ ^ / / }{/}x; return $raw_content; } |
