Commit bb6c6400 authored by Ilkka Ollakka's avatar Ilkka Ollakka

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

thou getURI should return valid uri anyway. So this is kinda hack anyway.
parent 343c86e8
......@@ -324,9 +324,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