~ubuntu-branches/ubuntu/hardy/lighttpd/hardy-updates

« back to all changes in this revision

Viewing changes to src/mod_auth.c

  • Committer: Bazaar Package Importer
  • Author(s): Lukas Fittl
  • Date: 2006-10-10 13:57:38 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20061010135738-gn4pp1ut1s1g27pb
Tags: 1.4.13~r1370-1ubuntu1
* Merge from Debian unstable (Closes: Malone #64900). Remaining changes:
  - Add an additional dependency on libterm-readline-perl-perl
    (Malone #43895)

Show diffs side-by-side

added added

removed removed

Lines of Context:
193
193
        
194
194
        /* search auth-directives for path */
195
195
        for (k = 0; k < p->conf.auth_require->used; k++) {
196
 
                buffer *req = p->conf.auth_require->data[k]->key;
 
196
                buffer *require = p->conf.auth_require->data[k]->key;
197
197
 
198
 
                if (req->used == 0) continue;
199
 
                if (con->uri.path->used < req->used) continue;
 
198
                if (require->used == 0) continue;
 
199
                if (con->uri.path->used < require->used) continue;
200
200
 
201
201
                /* if we have a case-insensitive FS we have to lower-case the URI here too */
202
202
 
203
203
                if (con->conf.force_lowercase_filenames) {
204
 
                        if (0 == strncasecmp(con->uri.path->ptr, req->ptr, req->used - 1)) {
 
204
                        if (0 == strncasecmp(con->uri.path->ptr, require->ptr, require->used - 1)) {
205
205
                                auth_required = 1;
206
206
                                break;
207
207
                        }
208
208
                } else {
209
 
                        if (0 == strncmp(con->uri.path->ptr, req->ptr, req->used - 1)) {
 
209
                        if (0 == strncmp(con->uri.path->ptr, require->ptr, require->used - 1)) {
210
210
                                auth_required = 1;
211
211
                                break;
212
212
                        }