OSC: Escape pattern matching characters in signal names.

pull/116/head
Jonathan Moore Liles 2013-08-25 19:12:53 -07:00
parent 96a6709fe8
commit 55f54085c5
1 changed files with 8 additions and 2 deletions

View File

@ -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;