Return early if no URL is passed

This commit is contained in:
Mukund Sivaraman 2008-08-27 15:46:50 +00:00
parent 7b62feac10
commit 18d6bc7730
1 changed files with 3 additions and 0 deletions

View File

@ -998,6 +998,9 @@ tr_httpIsValidURL( const char * url )
"<>#%<\"" /* delims */
"{}|\\^[]`"; /* unwise */
if (url == NULL)
return FALSE;
for( c=url; c && *c; ++c )
if( !strchr( rfc2396_valid_chars, *c ) )
return FALSE;