pyblosxom on lighttpd
shunuhs <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi developers.
On lighttpd, I can't access archive page,
like http://localhost/pyblosxom.cgi/2005/Dec/09 .
When I run it renderer debug mode on apache and lighttpd,
result is different. Looks like, lighttpd change path info
to lower character, so month value is not match for tools.MONTHS.
* lighttpd
pi_bl -> /2006/dec/09
pi_da ->
pi_mo ->
pi_yr -> 2006
* apache
pi_bl -> /2006/Dec/09
pi_da -> 09
pi_mo -> Dec
pi_yr -> 2006
$ diff -u pyblosxom.py.org pyblosxom.py
--- pyblosxom.py.org 2006-02-11 17:02:54.343750000 +0900
+++ pyblosxom.py 2006-02-11 17:05:07.203125000 +0900
@@ -1108,7 +1108,7 @@
item = ""
if (len(path_info) > 0):
- item = path_info.pop(0)
+ item = path_info.pop(0).capitalize()
# handle a month token
if item in tools.MONTHS:
data['pi_mo'] = item