diff --git a/nonlib/string_util.C b/nonlib/string_util.C index cb4f349..e26b696 100644 --- a/nonlib/string_util.C +++ b/nonlib/string_util.C @@ -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;