19 lines
573 B
Diff
19 lines
573 B
Diff
---
|
|
src/ne_auth.c | 5 +----
|
|
1 file changed, 1 insertion(+), 4 deletions(-)
|
|
|
|
--- a/src/ne_auth.c
|
|
+++ b/src/ne_auth.c
|
|
@@ -819,10 +819,7 @@ static int inside_domain(auth_session *s
|
|
|
|
for (n = 0; n < sess->ndomains && !inside; n++) {
|
|
const char *d = sess->domains[n];
|
|
-
|
|
- inside = (d[strlen(d)-1] == '/'
|
|
- && strncmp(uri.path, d, strlen(d)) == 0)
|
|
- || strcmp(d, uri.path) == 0;
|
|
+ inside = strncmp(uri.path, d, strlen(d)) == 0;
|
|
}
|
|
|
|
NE_DEBUG(NE_DBG_HTTPAUTH, "auth: '%s' is inside auth domain: %d.\n",
|