解决Opera下载QQ邮箱附件640乱码文件名问题

针对特定网站的规则分享、讨论

Moderator: phoenix

Post Reply
User avatar
cre
Moderator
Posts: 91
Joined: May 26 2009, 00:34

解决Opera下载QQ邮箱附件640乱码文件名问题

Post by cre » Mar 25 2013, 02:46

QQ邮箱服务器配置有问题,导致opera下载未预览过的附件保存时文件名为640随机字符.
预览过的附件没事是因为预览过的附件下载地址在mail.qq.com,未预览过的在sz.mail.store.qq.com.
原因是服务器的Content-Disposition头配置的低级失误.
这个每次改文件名或者先预览的蛋疼毛病非常痛苦,已经向qqmail提交,不知道qqmail啥时候才修正呢.
官方修复前就用proxomitron修正这个问题了. :D

正常的应该是

Code: Select all

Content-Disposition: attachment; filename*=UTF-8''filename
QQ邮箱的却是

Code: Select all

Content-Disposition: attachment; filename*="UTF-8''filename"
修正如下

Code: Select all

[HTTP headers]
In = TRUE
Out = FALSE
Key = "Content-Disposition: QQ Mail Attachment [13.03.25] [cre]"
URL = "sz.mail.store.qq.com"
Match = "attachment; filename\*=\"\1\""
Replace = "attachment; filename*=\1"

ionion

Post Reply