Browse Source

OSC: Escape pattern matching characters in signal names.

tags/non-daw-v1.2.0
Jonathan Moore Liles 12 years ago
parent
commit
55f54085c5
1 changed files with 8 additions and 2 deletions
  1. +8
    -2
      nonlib/string_util.C

+ 8
- 2
nonlib/string_util.C View File

@@ -62,13 +62,19 @@ char *escape_url ( const char *url )
{ {
switch ( *s ) switch ( *s )
{ {
case ' ':
case '<': case '<':
case '>': case '>':
case '%': case '%':
// liblo doesn't like these in method names
case '[':
case ']':
case '{':
case '}':
case '?':
case ',':
case '#': case '#':
case '*': case '*':
case ',':
case ' ':
sprintf( w, "%%%2X", *s ); sprintf( w, "%%%2X", *s );
w += 2; w += 2;
break; break;


Loading…
Cancel
Save