Equals sign in django-registration activation url

瘦欲@ 提交于 2019-12-14 01:23:21

问题


I am using django-registration and for some reason, when it sends the activation email, it inserts an equals sign in the third to last character as such: http://example.com/accounts/activate/a65b4aca5156211bc522e29f3e872290544d14= e4/

This means the URL dispatcher does not catch the URL (the regex is ^activate/(?P<activation_key>\w+)/$. The url is incorrect anyway, as it should be without the equals sign.

Anybody know why this is happening?


回答1:


Your email client isn't reading the quoted-printable-encoded message properly. A = at the end of a line means that the line should be concatenated with the following line seamlessly.



来源:https://stackoverflow.com/questions/4293289/equals-sign-in-django-registration-activation-url

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!