一个twiki5.0的注册bug

    stlchina进行了升级, 发现注册用户不能正常激活,经过分析发现lib/TWiki/UI/Register.pm文件中,子函数register_cgi有一句:

$query->request_method() !~ /^POST$/i

但是经过测试发现,$query->request_method()一直是GET方式,于是简单fixed如下:

$query->request_method() !~ /^(POST|GET)$/i

就可以完成注册用户的激活。

Monthly Archives

Pages

Powered by Movable Type 7.7.2

About this Entry

This page contains a single entry by Cnangel published on April 13, 2011 9:01 PM.

从专利想到的 was the previous entry in this blog.

解决MT留言出错的问题 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.