Merge pull request #2831 from airween/v3/filestmpcontentfix

Fix FILES_TMP_CONTENT collection key naming mechanism
This commit is contained in:
martinhsv 2022-11-19 08:49:17 -08:00 committed by GitHub
commit 40f7a5067c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1220,7 +1220,7 @@ int Multipart::multipart_complete(std::string *error) {
m->m_tmp_file_size.second, m->m_tmp_file_size.second,
m->m_tmp_file_size.first); m->m_tmp_file_size.first);
m_transaction->m_variableFilesTmpContent.set(m->m_filename, m_transaction->m_variableFilesTmpContent.set(m->m_name,
m->m_value, m->m_valueOffset); m->m_value, m->m_valueOffset);
file_combined_size = file_combined_size + m->m_tmp_file_size.first; file_combined_size = file_combined_size + m->m_tmp_file_size.first;

View File

@ -1784,7 +1784,7 @@
"SecRequestBodyAccess On", "SecRequestBodyAccess On",
"SecUploadKeepFiles On", "SecUploadKeepFiles On",
"SecUploadDir /tmp", "SecUploadDir /tmp",
"SecRule FILES_TMP_CONTENT:small_text_file1.txt \"small\" \"id:1,phase:3,pass,t:trim,msg:'s'\"" "SecRule FILES_TMP_CONTENT:filedata \"small\" \"id:1,phase:3,pass,t:trim,msg:'s'\""
] ]
}, },
{ {