From 078b1e581aba73f740c8e0d2e6faab963540aaab Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 22 Nov 2017 11:24:00 +0100 Subject: Prefer usage of ampersand in UDP output URL query --- src/dabOutput/dabOutputUdp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/dabOutput') diff --git a/src/dabOutput/dabOutputUdp.cpp b/src/dabOutput/dabOutputUdp.cpp index 9d3ea84..20e0c40 100644 --- a/src/dabOutput/dabOutputUdp.cpp +++ b/src/dabOutput/dabOutputUdp.cpp @@ -59,7 +59,7 @@ int DabOutputUdp::Open(const char* name) const string uri_without_proto(name); regex re_url("([^:]+):([0-9]+)(.*)"); - regex re_query("[?](?:src=([^,]+))(?:,ttl=([0-9]+))?"); + regex re_query("[?](?:src=([^&,]+))(?:[&,]ttl=([0-9]+))?"); smatch what; if (regex_match(uri_without_proto, what, re_url, match_default)) { string address = what[1]; @@ -118,7 +118,7 @@ int DabOutputUdp::Open(const char* name) else { etiLog.level(error) << uri_without_proto << " is an invalid format for UDP address: " - "expected ADDRESS:PORT[?src=SOURCE,ttl=TTL]"; + "expected ADDRESS:PORT[?src=SOURCE&ttl=TTL]"; return -1; } -- cgit v1.2.3