}
static bool boolValue(const char *value) {
- return ( !strcmp(value, "1") ||
+ return ( !strcmp(value, "1") ||
!strcasecmp(value, "true") ||
!strcasecmp(value, "yes") );
}
return href;
}
- /* find last path component and replace it */
+ /* find last path component and replace it */
while( '/' != *pathend)
--pathend;
url = ++p;
continue;
}
- if( '.' != *p )
+ if( '.' != *p )
break;
++p;
if( '\0' == *p )
}
else
{
- if( '/' != *p )
+ if( '/' != *p )
break;
/* relative url starts with '../' */
++p;