File tree 2 files changed +14
-1
lines changed
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 1
1
v3.0.x - YYYY-MMM-DD (To be released)
2
2
-------------------------------------
3
3
4
+ - Uses mod_unique if available
5
+ [Issue #42 - @zimmerle, @victorhora, @Goron1606]
4
6
- Fix duplicate HTTP protocol strings
5
7
[Issue #21 - @victorhora]
6
8
Original file line number Diff line number Diff line change 1
1
2
+ #include <stdio.h>
3
+
2
4
#include "mod_security3.h"
3
5
#include "msc_utils.h"
4
6
#include "msc_config.h"
@@ -132,6 +134,8 @@ static void store_tx_context(msc_t *msr, request_rec *r)
132
134
static msc_t * create_tx_context (request_rec * r ) {
133
135
msc_t * msr = NULL ;
134
136
msc_conf_t * z = NULL ;
137
+ char * unique_id = NULL ;
138
+
135
139
z = (msc_conf_t * )ap_get_module_config (r -> per_dir_config ,
136
140
& security3_module );
137
141
@@ -141,7 +145,14 @@ static msc_t *create_tx_context(request_rec *r) {
141
145
}
142
146
143
147
msr -> r = r ;
144
- msr -> t = msc_new_transaction (msc_apache -> modsec , (Rules * )z -> rules_set , (void * )r );
148
+ unique_id = getenv ("UNIQUE_ID" );
149
+ if (unique_id != NULL || strlen (unique_id ) > 0 ) {
150
+ msr -> t = msc_new_transaction_with_id (msc_apache -> modsec ,
151
+ (Rules * )z -> rules_set , unique_id , (void * )r );
152
+ } else {
153
+ msr -> t = msc_new_transaction (msc_apache -> modsec ,
154
+ (Rules * )z -> rules_set , (void * )r );
155
+ }
145
156
146
157
store_tx_context (msr , r );
147
158
You can’t perform that action at this time.
0 commit comments