mirror of
https://github.com/gigablast/open-source-search-engine.git
synced 2024-10-04 12:17:35 +03:00
fixed cdata parsing issue
This commit is contained in:
parent
3092dcecaa
commit
261f4feb9b
@ -288,9 +288,13 @@ long XmlNode::setCDATANode ( char *node ) {
|
||||
if ( node[i ] !=']' ) continue;
|
||||
if ( node[i+1] !=']' ) continue;//{ i++; break; }
|
||||
// but skip it if we got it
|
||||
if ( node[i+2] == '>' ) { i+=3; break;}
|
||||
if ( node[i+2] !='>' ) continue;
|
||||
//if ( node[i+2] == '>' ) { i+=3; break;}
|
||||
i += 3;
|
||||
break;
|
||||
// if does not end in '>', skip the ']' anyway
|
||||
i+=2; break;
|
||||
// no! hurts regex ending in [0-9]
|
||||
//i+=2; break;
|
||||
}
|
||||
|
||||
// skip i over the >, if any (could be end of doc)
|
||||
|
Loading…
Reference in New Issue
Block a user