Let Database do the quoting of the 'group' table, so that prefixed tables will work.
[lhc/web/wiklou.git] / includes / SpecialUserlogin.php
index d2085de..89eedcb 100644 (file)
@@ -87,7 +87,7 @@ class LoginForm {
                global $wgOut;
                
                if ('' == $this->mEmail) {
-                       $this->mainLoginForm( wfMsg( 'noemail', $this->mName ) );
+                       $this->mainLoginForm( wfMsg( 'noemail', htmlspecialchars( $this->mName ) ) );
                        return;
                }
 
@@ -313,8 +313,8 @@ class LoginForm {
                $m = wfMsg( 'passwordremindertext', $ip, $u->getName(), $np );
 
                $error = userMailer( $u->getEmail(), $wgPasswordSender, wfMsg( 'passwordremindertitle' ), $m );
-                 
-               return $error;
+               
+               return htmlspecialchars( $error );
        }
 
 
@@ -371,7 +371,7 @@ class LoginForm {
                $mmp = wfMsg( 'mailmypassword' );
                $endText = wfMsg( 'loginend' );
 
-               if ( $endText = '<loginend>' ) {
+               if ( $endText == '<loginend>' ) {
                        $endText = '';
                }