fix regex problem and refactory request decode

This commit is contained in:
Xuan Sang LE
2018-02-05 11:42:01 +01:00
parent ff3c68ff64
commit 73adf50d41
2 changed files with 68 additions and 68 deletions

View File

@ -216,6 +216,8 @@ int regex_match(const char* expr,const char* search, int msize, regmatch_t* matc
reti = regcomp(&regex, expr, REG_ICASE | REG_EXTENDED);
if( reti ){
LOG("Could not compile regex: %s\n",expr);
regerror(reti, &regex, msgbuf, sizeof(msgbuf));
LOG("Regex match failed: %s\n", msgbuf);
return 0;
}