From 0c28f30876e71f78df125e9027617f0d648bafb2 Mon Sep 17 00:00:00 2001 From: brectanus Date: Mon, 5 May 2008 21:57:28 +0000 Subject: [PATCH] Fix a transformation caching bug. See #490. --- CHANGES | 7 +++++++ apache2/re.c | 2 ++ 2 files changed, 9 insertions(+) diff --git a/CHANGES b/CHANGES index f0760d35..d8e37f29 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,10 @@ +24 Apr 2008 - 2.5.4 +------------------- + + * Fixed issue where transformation cache was using the SecDefaultAction + value even when t:none was used within a rule. + + 24 Apr 2008 - 2.5.3 ------------------- diff --git a/apache2/re.c b/apache2/re.c index a5470253..47486f76 100644 --- a/apache2/re.c +++ b/apache2/re.c @@ -1939,7 +1939,9 @@ static apr_status_t msre_rule_process_normal(msre_rule *rule, modsec_rec *msr) { if (strcmp(action->param, "none") == 0) { apr_table_clear(normtab); tfnspath = NULL; + tfnskey = NULL; tfnscount = 0; + last_crec = NULL; last_cached_tfn = 0; continue; }