]> granicus.if.org Git - apache/commit
Merge r1792589 from trunk:
authorJim Jagielski <jim@apache.org>
Tue, 23 May 2017 12:48:27 +0000 (12:48 +0000)
committerJim Jagielski <jim@apache.org>
Tue, 23 May 2017 12:48:27 +0000 (12:48 +0000)
commit5c6229bec764ccedffdc6c716b19e862169ae66d
treecba23e9023f311834c7713888cd93ae5b1a5d975
parent54b5dedcb085aa0d0361d2376538ae4d12ac67c8
Merge r1792589 from trunk:

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

Submitted by: elukey
Reviewed by: elukey, jim, yalvic

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1795906 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
STATUS
server/request.c