forked from Mirrors/privacore-open-source-search-engine
Removed hardcoded filters in msg40 for URLs with special sequences in them.
Filtered out results with URLS containing <![CDATA[ or ]]> in them. Seems to have been a workaround for PageResults.cpp not escaping output correctly.
This commit is contained in:
12
Msg40.cpp
12
Msg40.cpp
@ -1505,18 +1505,6 @@ bool Msg40::gotSummary ( ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// filter out urls with <![CDATA in them
|
||||
if ( mr && strstr( mr->ptr_ubuf, "<![CDATA[" ) ) {
|
||||
*level = CR_BAD_URL;
|
||||
continue;
|
||||
}
|
||||
|
||||
// also filter urls with ]]> in them
|
||||
if ( mr && strstr( mr->ptr_ubuf, "]]>" ) ) {
|
||||
*level = CR_BAD_URL;
|
||||
continue;
|
||||
}
|
||||
|
||||
// filter empty title & summaries
|
||||
if ( mr && mr->size_tbuf <= 1 && mr->size_displaySum <= 1 ) {
|
||||
if ( ! m_si->m_showErrors ) {
|
||||
|
Reference in New Issue
Block a user