一个twiki5.0的注册bug

| No Comments

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

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

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

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

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

Leave a comment

Archives

Pages

Powered by Movable Type 5.2.2

December 2012

Sun Mon Tue Wed Thu Fri Sat
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          

Recent Assets

  • dish_st4.png
  • dish_m5.png
  • dish_3.png
  • dish_two.png
  • dish_6.png
  • dish_1.png.png
  • 照片1028 105.jpg
  • 照片1028 088.jpg
  • 照片1028 084.jpg
  • 照片1028 081.jpg
Creative Commons License
This blog is licensed under a Creative Commons License.

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.