summaryrefslogtreecommitdiff
path: root/tests/condition.conf
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2016-02-21 17:56:24 +0000
committerStefan Bühler <stbuehler@web.de>2016-02-21 17:56:24 +0000
commit1c01a42aa3bf1ff997ae1e58e53b88053f84faa8 (patch)
tree864377468a935e510a9bd5f5d577a107b5dfe666 /tests/condition.conf
parent431559e5df7dfa6edfcea0371c09339e04b402c8 (diff)
downloadlighttpd-git-1c01a42aa3bf1ff997ae1e58e53b88053f84faa8.tar.gz
[core] never evaluate else branches until the previous branches are aready (fixes #2598)
The first condition which evaluates true in any if-else... condition chain short-circuits the chain, and any remaining conditions in the chain are marked false. Previous conditions in if-else condition chaining must be evaluatable (to true or false) -- must not remain in unset (not yet evaluatable) state -- prior to evaluating later conditions. Since any true condition short-circuits remaining conditions, all prev conditions must be false prior to evaluating later conditions. From: Glenn Strauss <gstrauss@gluelogic.com> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3081 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'tests/condition.conf')
-rw-r--r--tests/condition.conf6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/condition.conf b/tests/condition.conf
index e0b36821..7e1c5cae 100644
--- a/tests/condition.conf
+++ b/tests/condition.conf
@@ -86,3 +86,9 @@ else $HTTP["host"] == "test4.example.org" {
)
}
}
+
+$HTTP["url"] != "/show/other/server-tag" {
+}
+else $HTTP["scheme"] == "http" {
+ server.tag = "special tag"
+}