2006-01-30 hack BUG
16:00 许 Hoxide 报告有新人,上传长中文路径的文件着到MoinMoin 造成更新汇报页面break:
attachment:snap060130-moinerror.png
- 于是快速修改对应脚本:
{{#!python
- if line.action[:3] == 'ATT':
- import urllib try:
- filename = urllib.unquote(line.extra)
filename = "filename can not display...maybe UnicodeDecodeError"
- try:
- comment = _("Upload of attachment '%(filename)s'.") % {'filename': filename}
- comment = _("Upload of attachment '%(filename)s'.") % "filename can not display..."
- import urllib try:
}}}
FIXED
