Skip to content
Snippets Groups Projects
Commit 2ccecba8 authored by Howard Chu's avatar Howard Chu
Browse files

URL with authority spec must use absolute path

parent e7be7301
No related branches found
No related tags found
No related merge requests found
......@@ -52,8 +52,12 @@ ldif_open_url(
p = urlstr + sizeof("file:")-1;
/* we don't check for LDAP_DIRSEP since URLs should contain '/' */
if ( p[0] == '/' && p[1] == '/' )
if ( p[0] == '/' && p[1] == '/' ) {
p += 2;
/* path must be absolute if authority is present */
if ( p[0] != '/' )
return NULL;
}
p = ber_strdup( p );
ldap_pvt_hex_unescape( p );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment