3

我正在使用 django-registration 并且由于某种原因,当它发送激活电子邮件时,它会在倒数第三个字符中插入一个等号:http ://example.com/accounts/activate/a65b4aca5156211bc522e29f3e872290544d14= e4/

这意味着 URL 调度程序不会捕获 URL(正则表达式是^activate/(?P<activation_key>\w+)/$. 无论如何 url 都不正确,因为它应该没有等号。

有人知道为什么会这样吗?

4

1 回答 1

9

您的电子邮件客户端未正确读取quoted-printable-encoded 消息。行尾的A=表示该行应与下一行无缝连接。

于 2010-11-27T18:54:38.603 回答