Commit c0fe405d authored by Ilkka Ollakka's avatar Ilkka Ollakka

check scheme part in uri with checking :// instead of just checking :

should fix #2218, thou getURI should return valid uri anyway. So this
is kinda hack anyway.
parent 9c9dbd39
......@@ -316,9 +316,9 @@ static char *assertUTF8URI( char *psz_name )
return NULL;
/** \todo check for a valid scheme part preceding the colon */
size_t i_delim = strcspn( psz_s, ":" );
if( i_delim != strlen( psz_s ) )
if( strstr( psz_s, "://") != NULL )
{
size_t i_delim = strcspn( psz_s, ":" );
i_delim++; /* skip the ':' */
strncpy( psz_ret, psz_s, i_delim );
psz_d = psz_ret + i_delim;
......
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