Skip to content

Commit 40f7a50

Browse files
authored
Merge pull request #2831 from airween/v3/filestmpcontentfix
Fix FILES_TMP_CONTENT collection key naming mechanism
2 parents 398e174 + aa44c7b commit 40f7a50

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/request_body_processor/multipart.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1220,7 +1220,7 @@ int Multipart::multipart_complete(std::string *error) {
12201220
m->m_tmp_file_size.second,
12211221
m->m_tmp_file_size.first);
12221222

1223-
m_transaction->m_variableFilesTmpContent.set(m->m_filename,
1223+
m_transaction->m_variableFilesTmpContent.set(m->m_name,
12241224
m->m_value, m->m_valueOffset);
12251225

12261226
file_combined_size = file_combined_size + m->m_tmp_file_size.first;

test/test-cases/regression/offset-variable.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1784,7 +1784,7 @@
17841784
"SecRequestBodyAccess On",
17851785
"SecUploadKeepFiles On",
17861786
"SecUploadDir /tmp",
1787-
"SecRule FILES_TMP_CONTENT:small_text_file1.txt \"small\" \"id:1,phase:3,pass,t:trim,msg:'s'\""
1787+
"SecRule FILES_TMP_CONTENT:filedata \"small\" \"id:1,phase:3,pass,t:trim,msg:'s'\""
17881788
]
17891789
},
17901790
{

0 commit comments

Comments
 (0)