OSC: Escape pattern matching characters in signal names.
This commit is contained in:
parent
96a6709fe8
commit
55f54085c5
|
@ -62,13 +62,19 @@ char *escape_url ( const char *url )
|
|||
{
|
||||
switch ( *s )
|
||||
{
|
||||
case ' ':
|
||||
case '<':
|
||||
case '>':
|
||||
case '%':
|
||||
// liblo doesn't like these in method names
|
||||
case '[':
|
||||
case ']':
|
||||
case '{':
|
||||
case '}':
|
||||
case '?':
|
||||
case ',':
|
||||
case '#':
|
||||
case '*':
|
||||
case ',':
|
||||
case ' ':
|
||||
sprintf( w, "%%%2X", *s );
|
||||
w += 2;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue