Browse Source

MT#55283 add extra string escaping mechanism

Allow spaces to be escaped as double periods.

Change-Id: If7d9322444ad329a877cd844618ba4c1fbe4a356
pull/1694/head
Richard Fuchs 2 years ago
parent
commit
bd9d2d6ff9
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      daemon/call_interfaces.c

+ 5
- 0
daemon/call_interfaces.c View File

@ -879,6 +879,11 @@ static str *str_dup_escape(const str *s) {
memmove(&ret->s[i + 1], &ret->s[i + 2], ret->len - i - 2);
ret->len--;
}
while ((i = str_str(ret, "..")) >= 0) {
ret->s[i] = ' ';
memmove(&ret->s[i + 1], &ret->s[i + 2], ret->len - i - 2);
ret->len--;
}
return ret;
}
static void call_ng_flags_esc_str_list(struct sdp_ng_flags *out, str *s, void *qp) {


Loading…
Cancel
Save