websiteWebsite
codingteam CodingTeam
A free forge, lightweight and extensible.

 

Browse the code

Differences between 245 and 246 on /trunk/inc/modules/head_member.
Number of edited files: 1 (0 added, 0 deleted and 1 modified)
Author: xbright
Log message: * Fixed the bug that occurs sometimes on login by cleaning POST values
Date: 2009-06-09 11:49:01

Added file(s) Deleted file(s) Modified file(s)

 

Old New Code
43 43
                        $auto = 0;
44 44
                    else
45 45
                        $auto = 1;
46  
                
  46

                                    
47 47
                    $nick = $this->ct_db->cleanentry($_POST['login_nickname'], TRUE);
48 48
                    $pass = $this->ct_db->cleanentry($_POST['login_password'], TRUE);
49 49

                                        
  50
                    // Clean POST values
  51
                    unset($_POST['login_nickname'],
  52
                          $_POST['login_password'],
  53
                          $_POST['auto']);
  54

                                    
50 55
                    $this->ct_session->login($nick, $pass, $auto,
51 56
                                             $_SERVER['HTTP_REFERER']);
52 57
                }
69 74

                                        
70 75
                    $jid = $this->ct_db->cleanentry($_POST['login_jabberid'], TRUE);
71 76

                                        
  77
                    // Clean POST values
  78
                    unset($_POST['login_jabberid'],
  79
                          $_POST['auto']);
  80

                                    
72 81
                    $this->ct_session->login($jid, $auto,
73 82
                                             $_SERVER['HTTP_REFERER']);
74 83
                }
75 84