mod_session: Fix problems interpreting the SessionInclude and
SessionExclude configuration.
PR: 56038
Submitted by: Erik Pearson <erik adaptations.com>
Reviewed by: trawick
Submitted by: trawick
Reviewed/backported by: jim
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@
1560698 13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.4.8
+ *) mod_session: Fix problems interpreting the SessionInclude and
+ SessionExclude configuration. PR 56038. [Erik Pearson
+ <erik adaptations.com>]
+
*) mod_authn_core: Allow <AuthnProviderAlias>'es to be seen from auth
stanzas under virtual hosts. PR 55622. [Eric Covener]
[ start all new proposals below, under PATCHES PROPOSED. ]
- * mod_session: Fix problems interpreting the SessionInclude and
- SessionExclude configuration.
- trunk patch: http://svn.apache.org/r1559828
- 2.4.x patch: trunk patch works after resolving CHANGES conflicts
- +1: trawick, minfrin, jim
-
-
PATCHES PROPOSED TO BACKPORT FROM TRUNK:
[ New proposals should be added at the end of the list ]
included = 0;
for (i = 0; !included && i < conf->includes->nelts; i++) {
const char *include = includes[i];
- if (strncmp(r->uri, include, strlen(include))) {
+ if (strncmp(r->uri, include, strlen(include)) == 0) {
included = 1;
}
}
}
if (conf->excludes->nelts) {
- for (i = 0; included && i < conf->includes->nelts; i++) {
+ for (i = 0; included && i < conf->excludes->nelts; i++) {
const char *exclude = excludes[i];
- if (strncmp(r->uri, exclude, strlen(exclude))) {
+ if (strncmp(r->uri, exclude, strlen(exclude)) == 0) {
included = 0;
}
}