From 680704d114e4aa787c7a2431653ed9f2cb52415e Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Thu, 20 May 2004 19:51:41 +0000 Subject: [PATCH] accidentially removed the test for --- includes/EditPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index d359255f50..d9959ae39f 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -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; -- 2.20.1