Browse Source

MT#55283 support leading spaces in string dict

Allow usage of `key=[ something ]` in rtpp_flags

One test is affected

Change-Id: Ib3d68f298d2e0cd02c74bf2c7d3d02b055223bc4
pull/1870/head
Richard Fuchs 1 year ago
parent
commit
f3aa776b93
2 changed files with 3 additions and 1 deletions
  1. +2
    -0
      daemon/control_ng_flags_parser.c
  2. +1
    -1
      t/auto-daemon-tests-rtpp-flags.pl

+ 2
- 0
daemon/control_ng_flags_parser.c View File

@ -79,6 +79,8 @@ static int rtpp_is_dict_list(rtpp_pos *a) {
if (!skip_char(&list, '['))
return 0;
// check contents
if (list.len == 0)
list = a->remainder; // could be just leading spaces?
if (list.len == 0)
return 0; // unexpected end of string
if (list.s[0] == '[')


+ 1
- 1
t/auto-daemon-tests-rtpp-flags.pl View File

@ -627,7 +627,7 @@ a=test
a=quux
----------------------------------
v=0
o=- 1545997027 1 IN IP4 198.51.100.1
o=- 1545997027 1 IN IP4 203.0.113.1
s=tester
t=0 0
a=quux


Loading…
Cancel
Save