aboutsummaryrefslogtreecommitdiff
path: root/src/common/notify.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-02-06 17:48:08 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-03-04 11:48:36 +0000
commit28b6dbf2633f695b7bf85dba25cb678e898bc233 (patch)
tree6e316fef2e8d12f0d1258304bdc4c85a53969465 /src/common/notify.cpp
parentMerge pull request #5126 (diff)
downloadmonero-28b6dbf2633f695b7bf85dba25cb678e898bc233.tar.xz
notify: fix tokenizing being too strict
Diffstat (limited to 'src/common/notify.cpp')
-rw-r--r--src/common/notify.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/notify.cpp b/src/common/notify.cpp
index c3165fb05..e2df5096d 100644
--- a/src/common/notify.cpp
+++ b/src/common/notify.cpp
@@ -48,7 +48,7 @@ Notify::Notify(const char *spec)
{
CHECK_AND_ASSERT_THROW_MES(spec, "Null spec");
- boost::split(args, spec, boost::is_any_of(" "));
+ boost::split(args, spec, boost::is_any_of(" \t"), boost::token_compress_on);
CHECK_AND_ASSERT_THROW_MES(args.size() > 0, "Failed to parse spec");
if (strchr(spec, '\'') || strchr(spec, '\"') || strchr(spec, '\\'))
MWARNING("A notification spec contains a quote or backslash: note that these are handled verbatim, which may not be the intent");