Bug #6

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

Added by Anonymous 1376 days ago. Updated 661 days ago.

Status:Fixed Start:
Priority:Normal Due date:
Assigned to:- % Done:

0%

Category:core
Target version:-
Pending:

Resolution:

fixed


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

02/19/2005 10:43 AM - Anonymous

  • 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 PDF