forked from Mirrors/privacore-open-source-search-engine
Fix string compare check
This commit is contained in:
@ -82,14 +82,14 @@ bool sendPageDocProcess(TcpSocket *s, HttpRequest *r) {
|
||||
}
|
||||
break;
|
||||
case 10:
|
||||
if (strncasecmp(type, "docrebuild", 9) == 0) {
|
||||
if (strncasecmp(type, "docrebuild", 10) == 0) {
|
||||
// docrebuild
|
||||
if (starts_with(keyStr.c_str(), "http")) {
|
||||
docProcess = &g_docRebuildUrl;
|
||||
} else {
|
||||
docProcess = &g_docRebuild;
|
||||
}
|
||||
} else if (strncasecmp(type, "docrebuild", 9) == 0) {
|
||||
} else if (strncasecmp(type, "docreindex", 10) == 0) {
|
||||
// docreindex
|
||||
if (starts_with(keyStr.c_str(), "http")) {
|
||||
docProcess = &g_docReindexUrl;
|
||||
|
Reference in New Issue
Block a user