summaryrefslogtreecommitdiffstats
path: root/modules/session
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2014-01-20 22:01:15 +0100
committerJeff Trawick <trawick@apache.org>2014-01-20 22:01:15 +0100
commit2ab66dcfb32cfe9b1523a2dfff4ef8c9361f07b1 (patch)
tree729e4ff11b8eac1a0ea64ec7d33c46f1d3a512ee /modules/session
parentupdate transformation (diff)
downloadapache2-2ab66dcfb32cfe9b1523a2dfff4ef8c9361f07b1.tar.xz
apache2-2ab66dcfb32cfe9b1523a2dfff4ef8c9361f07b1.zip
mod_session: Fix problems interpreting the SessionInclude and
SessionExclude configuration. PR: 56038 Submitted by: Erik Pearson <erik adaptations.com> Reviewed by: trawick git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1559828 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/session')
-rw-r--r--modules/session/mod_session.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/session/mod_session.c b/modules/session/mod_session.c
index 89c80747cf..48475c0725 100644
--- a/modules/session/mod_session.c
+++ b/modules/session/mod_session.c
@@ -62,16 +62,16 @@ static int session_included(request_rec * r, session_dir_conf * conf)
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;
}
}