summaryrefslogtreecommitdiff
path: root/tests/core-condition.t
Commit message (Collapse)AuthorAgeFilesLines
* [core] allow redirect,rewrite ext subst w/o pcreGlenn Strauss2022-04-081-3/+3
| | | | | | | | allow redirect and rewrite extended substitution when lighttpd is built without pcre. When built without pcre, url.rewrite and url.redirect always match first list entry as if it were "", and numerical substitutions ($0 %0 $1 %1 etc) are always ignored, but other extended substitutions (e.g. ${url.path}) may still occur.
* [tests] able to run tests when built w/o pcreGlenn Strauss2022-04-081-1/+16
| | | | | | perl test framework now runs most tests even when lighttpd has been built without pcre support, though some tests which rely on regex are skipped (tests/core-condition.t)
* [tests] combine *.t using tests/condition.confGlenn Strauss2021-09-041-2/+45
| | | | | | | | combine tests/*.t using tests/condition.conf into tests/core-condition.t Platforms which are horrifically slow starting processes (e.g. Windows) take much more time to start and stop lighttpd many times for independent *.t instances run through the Perl Test::More framework
* [tests] combine *.t using tests/lighttpd.confGlenn Strauss2021-09-041-87/+1
| | | | | | | | combine tests/*.t using tests/lighttpd.conf into tests/request.t Platforms which are horrifically slow starting processes (e.g. Windows) take much more time to start and stop lighttpd many times for independent *.t instances run through the Perl Test::More framework
* [core] never evaluate else branches until the previous branches are aready ↵Glenn Strauss2016-02-211-2/+15
| | | | | | | | | | | | | | | | | | (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
* [tests] Add path traversal check with $HTTP['url']Stefan Bühler2011-02-101-1/+17
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2777 152afb58-edef-0310-8abb-c4023f1b3aa9
* - change s/// separator that it doesn't confuse vimElan Ruusamäe2008-01-151-4/+4
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2027 152afb58-edef-0310-8abb-c4023f1b3aa9
* the missing part of [757]mOo2005-09-301-3/+0
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@766 152afb58-edef-0310-8abb-c4023f1b3aa9
* the refer == "" tests are failing even if they should have been fixed ↵Jan Kneschke2005-09-301-0/+3
| | | | | | already, make them as TODO for the final release git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@764 152afb58-edef-0310-8abb-c4023f1b3aa9
* an unset header is now treat as empty_string "" to make the conditional ↵mOo2005-09-291-6/+9
| | | | | | logic correct. git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@757 152afb58-edef-0310-8abb-c4023f1b3aa9
* added a check for $HTTP["referer"] == ""Jan Kneschke2005-09-291-1/+24
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@753 152afb58-edef-0310-8abb-c4023f1b3aa9
* fix and add testcase for #255mOo2005-09-201-12/+11
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@716 152afb58-edef-0310-8abb-c4023f1b3aa9
* tests for htpasswd + md5 and referer matching in conditionalsJan Kneschke2005-09-161-6/+36
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@711 152afb58-edef-0310-8abb-c4023f1b3aa9
* find perl at runtimeJan Kneschke2005-09-011-1/+1
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@670 152afb58-edef-0310-8abb-c4023f1b3aa9
* added tests for keep-alive and setenv and passed a ARRAY ref instead of a ↵Jan Kneschke2005-08-311-7/+7
| | | | | | HASH ref git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@654 152afb58-edef-0310-8abb-c4023f1b3aa9
* check that the anti deeplinking via referer matches workJan Kneschke2005-08-241-1/+32
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@617 152afb58-edef-0310-8abb-c4023f1b3aa9
* user defined variable, compute on parsing: string+string, int+int, ↵Jan Kneschke2005-08-081-4/+4
| | | | | | | | | array+array, var+=expression. "include" sub configuration file. (merged ([308], [309], [306], [305]) git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@520 152afb58-edef-0310-8abb-c4023f1b3aa9
* added nested conditionals (merged [298])Jan Kneschke2005-08-081-0/+53
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@519 152afb58-edef-0310-8abb-c4023f1b3aa9