Skip to content

Commit

Permalink
[XrdCl] Validate URLs comming from metalinks.
Browse files Browse the repository at this point in the history
fixes #683
  • Loading branch information
simonmichal committed Apr 6, 2018
1 parent 9b16750 commit 3ea6116
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/XrdCl/XrdClMetalinkRedirector.cc
Expand Up @@ -417,7 +417,7 @@ namespace XrdCl
while( ( url = fileInfos[0]->GetUrl() ) )
{
replica = URL( url );
if( replica.GetURL().size() > 4096 )
if( !replica.IsValid() || replica.GetURL().size() > 4096 )
continue; // this is the internal limit (defined in the protocol)
pReplicas.push_back( replica.GetURL() );
}
Expand Down

0 comments on commit 3ea6116

Please sign in to comment.