Commit aabe5a87 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Don't URL encode ./:[] because they are to be found in URLs...

closes #311
parent 3b16a551
......@@ -218,7 +218,11 @@ static inline int isurlsafe( int c )
return ( (unsigned char)( c - 'a' ) < 26 )
|| ( (unsigned char)( c - 'A' ) < 26 )
|| ( (unsigned char)( c - '0' ) < 10 )
|| ( strchr( "-_.", c ) != NULL );
/* Hmm, we should not encode character that are allowed in URLs
* (even if they are not URL-safe), nor URL-safe characters.
* We still encode some of them because of Microsoft's crap browser.
*/
|| ( strchr( "/:.[]-_.", c ) != NULL );
}
/*****************************************************************************
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment