fix core from bogus url some more.
This commit is contained in:
parent
1a3c69af6b
commit
690b4c5069
@ -22070,7 +22070,12 @@ bool XmlDoc::logIt ( SafeBuf *bb ) {
|
||||
// like how we index it, do not include the filename. so we can
|
||||
// have a bunch of pathdepth 0 urls with filenames like xyz.com/abc.htm
|
||||
if ( m_firstUrlValid ) {
|
||||
int32_t pd = m_firstUrl.getPathDepth(false);
|
||||
int32_t pd = -1;
|
||||
// fix core
|
||||
if ( m_firstUrl.m_url &&
|
||||
m_firstUrl.m_ulen > 0 &&
|
||||
m_firstUrl.m_path )
|
||||
pd = m_firstUrl.getPathDepth(false);
|
||||
sb->safePrintf("pathdepth=%"INT32" ",pd);
|
||||
}
|
||||
else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user