From 470d30ac239a5f851d9f6660391375aa6d581716 Mon Sep 17 00:00:00 2001 From: Luca Date: Wed, 13 Nov 2019 17:37:48 +0100 Subject: Fixed SQL Injection detection --- src/lib/ndpi_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c index bf3f748be..ed07d6ba6 100644 --- a/src/lib/ndpi_utils.c +++ b/src/lib/ndpi_utils.c @@ -1148,7 +1148,7 @@ static int find_occurrency(char *str, char *what) { len = strlen(what); - if((found[len] != '\0') && (found[len] != ' ') + if(((found[len] != '\0') || (found[len] != ' ')) && ((found == str) || (found[-1] == ' '))) return(1); else -- cgit v1.2.3