I added this line to localSettings.php:
$wgSpamRegex = "/1px;/";
(There was no existing code for $wgSpamRegex)
I had left my direct assignment in the edit.php code, so it changed the value to the old non-deliminated string, but when I found that and removed it, all works. Yay!
Then I tried to change the System Message to not reveal what piece of text triggered the spam filter. Now, it just says:
The page you wanted to save was blocked by the spam filter. If you are not a spammer, please [[User:WikiSysop|report this to the admin]].
But the spam text is still displayed. So then I found:
function spamPage( $match ) { global $wgOut; $wgOut->setPageTitle( wfMsg( "spamprotectiontitle" ) ); $wgOut->setRobotpolicy( "noindex,nofollow" ); $wgOut->setArticleRelated( false );
// $wgOut->addWikiText( wfMsg( "spamprotectiontext" ) . "\n\n" . $match ); $wgOut->addWikiText( wfMsg( "spamprotectiontext" ) );
So I removed the $match from the last line and all works.
Thanks!