diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/misc.c | 3 | 
1 files changed, 1 insertions, 2 deletions
| @@ -305,8 +305,7 @@ void http_encode( char *s )  	for( i = j = 0; t[i]; i ++, j ++ )  	{ -		/* if( t[i] <= ' ' || ((unsigned char *)t)[i] >= 128 || t[i] == '%' ) */ -		if( !isalnum( t[i] ) ) +		if( !isalnum( t[i] ) && !strchr( "._-~", t[i] ) )  		{  			sprintf( s + j, "%%%02X", ((unsigned char*)t)[i] );  			j += 2; | 
