Project

General

Profile

Bug #6

last patch for indexfiles broke them for the *last* indexfile in the list

Added by Anonymous almost 13 years ago. Updated almost 11 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
core
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Missing in 1.5.x:

Description

http://trac.lighttpd.net/trac/changeset/10#file1

Seems like that patch broke a part of the indexfiles.
If matching only on the last specified indexfile I always got to the directory-index-part
and got a 403 because of that.
The removed code hat a "break;" in it which broke out at once of the for-loop.
Now it loops one more time therefore k is one number too high.

I got this "fixed" by changing the check for directory-index from:

if (k con->conf.indexfiles->used) {[BR]
... to ...

if (!found && k con->conf.indexfiles->used) {[BR]

Don't know if thats the proper fix but at least it works now again for me.

Thomas

-- thomas.seifert

History

#1

Updated by Anonymous almost 13 years ago

  • Status changed from New to Fixed
  • Resolution set to fixed

Patch is correct. See r14

Added a testcase for it.

-- jan

Also available in: Atom