Skip to content

Commit

Permalink
Fix string comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
airween committed Aug 26, 2024
1 parent cd4905b commit 524a799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apache2/msc_multipart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 524a799

Please sign in to comment.