summaryrefslogtreecommitdiffstats
path: root/modules/mappers (follow)
Commit message (Collapse)AuthorAgeFilesLines
* short-circuit some kinds of looping in RewriteRule.Eric Covener2016-12-141-0/+11
| | | | | | | | | | PR60478 Submitted By: Jeff Wheelouse <apache wheelhouse.org> Committed By: covener git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1774288 13f79535-47bb-0310-9956-ffa450edef68
* Fix spelling in comments and text files.Rainer Jung2016-08-113-7/+7
| | | | | | | | No functional change. PR 59990 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1756038 13f79535-47bb-0310-9956-ffa450edef68
* Rename ap_casecmpstr[n]() to ap_cstr_casecmp[n](), update with APR doxygenWilliam A. Rowe Jr2016-06-093-24/+24
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1747469 13f79535-47bb-0310-9956-ffa450edef68
* Constify and save a few bytes in the conf pool when parsing "UserDir" directiveChristophe Jaillet2016-05-281-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1745835 13f79535-47bb-0310-9956-ffa450edef68
* mod_rewrite: adding h2:// and h2c:// proxy schemes to absolute uri ↵Stefan Eissing2016-05-171-0/+8
| | | | | | detection, patch by Evgeny Kotkov git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1744206 13f79535-47bb-0310-9956-ffa450edef68
* [PATCH] mod_rewrite: double escaping of query strings in server contextEric Covener2016-03-151-2/+19
| | | | | | | | | | | | (like PR50447, for server context) Submitted By: Evgeny Kotkov <evgeny.kotkov visualsvn.com> Committed By: covener git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1735088 13f79535-47bb-0310-9956-ffa450edef68
* followup to r1734125: null check for r->argsEric Covener2016-03-091-6/+9
| | | | | | | | before cleaning up some QSA cases. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1734294 13f79535-47bb-0310-9956-ffa450edef68
* mod_rewrite: Add QSL|qslast flag to allow rewrites to files with Eric Covener2016-03-081-4/+14
| | | | | | | | | | | literal question marks in their names. PR 58777. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1734125 13f79535-47bb-0310-9956-ffa450edef68
* revert broken r1724656 which moved the rewrite loop checksEric Covener2016-02-291-14/+13
| | | | | | | | | | | until after bases had been stripped and added in prep for internal redirect. original issue & regression disussed in PR58854 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1732896 13f79535-47bb-0310-9956-ffa450edef68
* mod_speling: make behavior of CheckCaseOnly andRainer Jung2016-02-251-2/+1
| | | | | | | | | the new CheckBasenameMatch orthogonal, so one can combine them and they don't influence each other. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1732273 13f79535-47bb-0310-9956-ffa450edef68
* Sync mod_rewrite REMOTE_HOST to newbehavior (REMOTE_ADDR is useragent_ip)William A. Rowe Jr2016-02-121-2/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1730127 13f79535-47bb-0310-9956-ffa450edef68
* hostname: Test and log useragent_host per-request across various modules,William A. Rowe Jr2016-02-121-2/+1
| | | | | | | | | | | | | including the scoreboard, expression and rewrite engines, setenvif, authz_host, access_compat, custom logging, ssl and REMOTE_HOST variables. PR55348 [William Rowe] This is the complete change set which applies cleanly to 2.4.x as well, the server/scoreboard.c will follow, which does not apply due to drift. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1729930 13f79535-47bb-0310-9956-ffa450edef68
* Added many log numbers to log statements thatRainer Jung2016-01-192-4/+5
| | | | | | | | | had none. Those were not detected by the coccinelle script. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1725485 13f79535-47bb-0310-9956-ffa450edef68
* *) mod_rewrite: Avoid looping on relative substitutions thatEric Covener2016-01-141-13/+14
| | | | | | | | | | | | | result in the same filename we started with. PR 58854. [Eric Covener] Previously, the comparison of old and new filename happened before some prefixes might be added. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1724656 13f79535-47bb-0310-9956-ffa450edef68
* Follow up to r1715880: revert more abusive ap_casecmpstr[n]() usages.Yann Ylavic2015-12-291-33/+33
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1722150 13f79535-47bb-0310-9956-ffa450edef68
* Use 'ap_array_str_contains' to simplify code.Christophe Jaillet2015-12-111-9/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1719252 13f79535-47bb-0310-9956-ffa450edef68
* Follow up to r1715880: revert abusive ap_casecmpstr[n]() usages.Yann Ylavic2015-11-241-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1716151 13f79535-47bb-0310-9956-ffa450edef68
* More ap_casecmpstr[n]() usages (follow up to r1715876).Yann Ylavic2015-11-233-33/+33
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1715880 13f79535-47bb-0310-9956-ffa450edef68
* Use new ap_casecmpstr[n]() functions where appropriate (not exhaustive).Yann Ylavic2015-11-231-25/+25
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1715876 13f79535-47bb-0310-9956-ffa450edef68
* Revert r1715789: will re-commit without spurious functional changes.Yann Ylavic2015-11-231-25/+25
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1715869 13f79535-47bb-0310-9956-ffa450edef68
* Use new ap_casecmpstr[n]() functions where appropriate (not exhaustive).Yann Ylavic2015-11-231-25/+25
| | | | | | | [Reverted by r1715869] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1715789 13f79535-47bb-0310-9956-ffa450edef68
* Remove some useless 'return' statements.Christophe Jaillet2015-11-212-14/+10
| | | | | | Fix style. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1715581 13f79535-47bb-0310-9956-ffa450edef68
* Fix some style issues on files that can easily be synch'ed with 2.4.xChristophe Jaillet2015-09-301-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1705983 13f79535-47bb-0310-9956-ffa450edef68
* Improve macro definition in order to avoid potential precedence issues.Christophe Jaillet2015-09-071-51/+51
| | | | | | | | For example, sparse spotted that the following line was spurious: newcond->flags &= ~CONDFLAG_NOCASE; It this particular case, 2 bits were resetted (instead of only 1). This was harmless because the first bit (i.e. CONDFLAG_NONE) is never tested as-is. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1701545 13f79535-47bb-0310-9956-ffa450edef68
* Revert r1697735.Christophe Jaillet2015-09-071-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1701543 13f79535-47bb-0310-9956-ffa450edef68
* mod_negotiation: simplify type-map body tag lookup, and be safeYann Ylavic2015-09-021-12/+6
| | | | | | | should it contain a NUL byte. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1700851 13f79535-47bb-0310-9956-ffa450edef68
* Fix an error spotted by sparse.Christophe Jaillet2015-08-251-1/+1
| | | | | | | | Without the parens, the 2 first bits are reseted, instead of just the one for CONDFLAG_NOCASE. This "bug" looks harmless as the first bit (CONDFLAG_NONE) is never tested. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1697735 13f79535-47bb-0310-9956-ffa450edef68
* + *) mod_dir: Prevent the internal identifier "httpd/unix-directory" fromEric Covener2015-08-121-0/+8
| | | | | | | | | + appearing as a Content-Type response header when requests for a directory + are rewritten by mod_rewrite. [Eric Covener] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1695583 13f79535-47bb-0310-9956-ffa450edef68
* Avoid a crash when lacking correct DB access permissions. PR 57868.Christophe Jaillet2015-08-101-0/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1695170 13f79535-47bb-0310-9956-ffa450edef68
* Allow cookies set by mod_rewrite to contain ':' by acceptingEric Covener2015-08-031-7/+15
| | | | | | | | | | | | ';' as an alternate separator. PR47241. Submitted By: <bugzilla schermesser com>, covener Committed By: covener git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1693963 13f79535-47bb-0310-9956-ffa450edef68
* s/\<\(\w\+\)\>\s\+\<\1\>/\1/gYann Ylavic2015-07-091-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1690137 13f79535-47bb-0310-9956-ffa450edef68
* mod_alias: follow up to r1686853.Yann Ylavic2015-06-221-21/+4
| | | | | | Factorize code (no functional change). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1686856 13f79535-47bb-0310-9956-ffa450edef68
* mod_alias: follow up to r1653941.Yann Ylavic2015-06-221-7/+19
| | | | | | | | Limit Redirect expressions to directory (Location) context and redirect statuses (implicit or explicit). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1686853 13f79535-47bb-0310-9956-ffa450edef68
* Initialize args to not print garbage mem during a RewriteCond parse error ↵Christophe Jaillet2015-06-011-3/+1
| | | | | | (same as r1681795 for RewriteRule) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1682988 13f79535-47bb-0310-9956-ffa450edef68
* initialize args to not print garbage mem during a RewriteRule parse errorEric Covener2015-05-261-3/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1681795 13f79535-47bb-0310-9956-ffa450edef68
* Follow up to r1679181: fix warning (return discards qualifiers from pointer ↵Yann Ylavic2015-05-161-1/+1
| | | | | | target type). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1679712 13f79535-47bb-0310-9956-ffa450edef68
* revert r1675103 because it [at least] causes FallBackResource to kickEric Covener2015-05-151-9/+2
| | | | | | | | in before mod_autoindex might have kicked in. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1679620 13f79535-47bb-0310-9956-ffa450edef68
* mod_authn_dbd, mod_authz_dbd, mod_session_dbd, mod_rewrite: Fix lifetimeYann Ylavic2015-05-131-4/+6
| | | | | | | | | | | of DB lookup entries independently of the selected DB engine. PR 46421. Suggested by: Michel Stam <michel reverze net> Proposed by: Steven whitson <steven.whitson gmail com> Reviewed/Extended/Committed by: ylavic git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1679181 13f79535-47bb-0310-9956-ffa450edef68
* If a directory exists but no indexes can be resolved, the fallback resourceEric Covener2015-04-211-2/+9
| | | | | | | | | | | should be attempted first before giving up. Submitted By: Jack <tjerk.meesters gmail.com> , covener Committed By: covener git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1675103 13f79535-47bb-0310-9956-ffa450edef68
* *) mod_rewrite: Add support for starting External Rewriting ProgramsJan Kaluža2015-03-061-3/+14
| | | | | | | | as non-root user on UNIX systems by specifying username and group name as third argument of RewriteMap directive. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1664565 13f79535-47bb-0310-9956-ffa450edef68
* mod_alias: follow up to r1653941.Yann Ylavic2015-01-311-3/+3
| | | | | | | Fill empty APLOGNO(). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1656225 13f79535-47bb-0310-9956-ffa450edef68
* Use unsigned bit fields.Graham Leggett2015-01-221-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1653978 13f79535-47bb-0310-9956-ffa450edef68
* mod_alias: Introduce expression parser support for Alias, ScriptAliasGraham Leggett2015-01-221-12/+200
| | | | | | | and Redirect. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1653941 13f79535-47bb-0310-9956-ffa450edef68
* mod_rewrite: Improve 'bad flag delimeters' startup error by showingEric Covener2015-01-161-11/+24
| | | | | | | | | | | how the input was tokenized. PR 56528. Submitted By: Edward Lu <Chaosed0 gmail.com> Committed By: covener git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1652507 13f79535-47bb-0310-9956-ffa450edef68
* Remove some instances where a RewriteBase must be specifiedEric Covener2014-11-301-1/+29
| | | | | | | | | | | | | | | | | Previously, any time you used a relative substitution in per-directory/htaccess context, you needed to specify a RewriteBase. But in case where the context document root and context prefix are known via e.g. mod_userdir or mod_alias, and the substitution is under the context document root, we can determine the replacement automatically. This makes htaccess files or config snippets a bit more portable. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1642484 13f79535-47bb-0310-9956-ffa450edef68
* Concat string at compile time when possible.Christophe Jaillet2014-09-181-1/+1
| | | | | | | Doing so, sometimes also give the opportunity to turn a 'ap_fputstrs' into a 'ap_fputs'. PR 53741 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1626050 13f79535-47bb-0310-9956-ffa450edef68
* Silent some cppcheck warnings.Christophe Jaillet2014-09-011-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1621806 13f79535-47bb-0310-9956-ffa450edef68
* the fixup hook should log (what is expected to be) local Jeff Trawick2014-05-221-0/+2
| | | | | | | | path just like the translate name hook, for a small hint when debugging 400 errors set just below git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1596963 13f79535-47bb-0310-9956-ffa450edef68
* stop setting context info for AliasMatch. These concepts do not really map Eric Covener2014-05-111-7/+0
| | | | | | | | well/reliably to AliasMatch. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1593745 13f79535-47bb-0310-9956-ffa450edef68
* strncmp(r->filename, "proxy:", 6) is faster than aJim Jagielski2014-04-181-1/+0
| | | | | | | | note. Plus, allows for checking even if not due to rewrite. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1588544 13f79535-47bb-0310-9956-ffa450edef68