Fix string comparison

This commit is contained in:
Ervin Hegedus 2024-08-26 12:02:34 +02:00
parent cd4905b889
commit 524a7996b0
No known key found for this signature in database
GPG Key ID: 5FA5BC3F5EC41F61

View File

@ -134,7 +134,7 @@ static int multipart_parse_content_disposition(modsec_rec *msr, char *c_d_value)
*/
char quote = '\0';
if (name == "filename*") {
if (strcmp(name, "filename*") == 0) {
/* filename*=charset'[optional-language]'filename */
/* Read beyond the charset and the optional language*/
const char* start_of_charset = p;