accidentially removed the test for
authorGabriel Wicke <gwicke@users.mediawiki.org>
Thu, 20 May 2004 19:51:41 +0000 (19:51 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Thu, 20 May 2004 19:51:41 +0000 (19:51 +0000)
includes/EditPage.php

index d359255..d9959ae 100644 (file)
@@ -130,7 +130,7 @@ class EditPage {
 
                if ( "save" == $formtype ) {
                        # Check for spam
-                       if ( preg_match( $wgSpamRegex, $this->textbox1 ) ) {
+                       if ( $wgSpamRegex && preg_match( $wgSpamRegex, $this->textbox1 ) ) {
                                        sleep(10);
                                        $wgOut->redirect( $this->mTitle->getFullURL() );
                                        return;