]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Evaluate nested If/ElseIf/Else config sections
authorLuca Toscano <elukey@apache.org>
Tue, 25 Apr 2017 09:06:26 +0000 (09:06 +0000)
committerLuca Toscano <elukey@apache.org>
Tue, 25 Apr 2017 09:06:26 +0000 (09:06 +0000)
commitfafe95b9050ac01b29274221e58f42311aad1ba2
tree3668f40010c3ee080498f37f85153119aa7bd92c
parentb7735544ee26de86a23eb0c2b855bc6ee8b18ec2
Evaluate nested If/ElseIf/Else config sections

It has been reported multiple times that nested
If/ElseIf/Else sections are not evaluated but
silently ignored.

This patch adds a simple recursion to the ap_if_walk
logic in order to allow arbitrary nested configs.
The overhead seems negligible compared to the actual
version of the ap_if_walk, but more expert feedback
is surely needed since this code gets called for every
HTTP request.

Tests are going to be added to t/apache/if_sections.t

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1792589 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
server/request.c