Bug 60580 - Multiple SetEnvIf statements with the same condition assume that the condition does not change
Summary: Multiple SetEnvIf statements with the same condition assume that the conditio...
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_setenvif (show other bugs)
Version: 2.4.23
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-12 13:25 UTC by Michael Kaufmann
Modified: 2017-03-02 11:23 UTC (History)
2 users (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Kaufmann 2017-01-12 13:25:01 UTC
Consider this simplified example:

SetEnvIf test ^$ test=1
SetEnvIf test ^$ test=2

"test" should now contain the value "1", but in fact it contains the value "2". SetEnvIf evaluates the condition only once and does not detect that it has changed the condition variable itself.