FILE *
ldif_open_url(
- LDAP_CONST char *urlstr
-)
+ LDAP_CONST char *urlstr )
{
FILE *url;
char *p = NULL;
}
/* we don't check for LDAP_DIRSEP since URLs should contain '/' */
- if( *p != '/' ) {
+ if( p[1] == '.' && ( p[2] == '/' || ( p[2] == '.' && p[3] == '/' ))) {
/* skip over false root */
p++;
}
ldif_fetch_url(
LDAP_CONST char *urlstr,
char **valuep,
- ber_len_t *vlenp
-)
+ ber_len_t *vlenp )
{
FILE *url;
char buffer[1024];