From: Gabriel Wicke Date: Thu, 20 May 2004 19:51:41 +0000 (+0000) Subject: accidentially removed the test for X-Git-Tag: 1.3.0beta1~12 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=680704d114e4aa787c7a2431653ed9f2cb52415e;p=lhc%2Fweb%2Fwiklou.git accidentially removed the test for --- 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;