Tuesday, April 4, 2006

Yaws 1.58 true_nozip bug

Yaws 1.58 has a bit of a bug. If you specify dir_listings = true_nozip, it poops out. This is because the if condition is written to only handle the situation where it is true or false.

Here is my little bug fix, the problem file is src/yaws_ls.erl


47c47,54
< if DoAllZip == true -> allzip() end,
---
> case DoAllZip of
> true ->
> allzip();
> true_nozip ->
> [];
> false ->
> []
> end,


klacke says he also has a fix but, as usual, sourceforge is down so he has not been able to commit it.

No comments:

Post a Comment