summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2017-11-26 16:17:31 +0100
committerDaniel Friesel <derf@finalrewind.org>2017-11-26 16:17:31 +0100
commit6d1c6dbc5fd7d1153244bee448c3f368b47115ea (patch)
tree1e66418c488e3db586cc182b6ff2258e1beacd77 /bin
parent585c099f0f554905e720ce558bb1c6343847542b (diff)
Allow //foo as escape for literal /foo messages
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mqtt-multipub2
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;
}