cvs: php-master-web /entry user-note.php

From: Date: Sat, 02 Sep 2006 14:28:36 +0000
Subject: cvs: php-master-web /entry user-note.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-32271@lists.php.net to get a copy of this message
nlopess Sat Sep 2 14:28:36 2006 UTC Modified files: /php-master-web/entry user-note.php Log: disable spamassassin checking (it hasn't proved useful so far) http://cvs.php.net/viewvc.cgi/php-master-web/entry/user-note.php?r1=1.58&r2=1.59&diff_format=u Index: php-master-web/entry/user-note.php diff -u php-master-web/entry/user-note.php:1.58 php-master-web/entry/user-note.php:1.59 --- php-master-web/entry/user-note.php:1.58 Sun Jul 30 15:55:09 2006 +++ php-master-web/entry/user-note.php Sat Sep 2 14:28:36 2006 @@ -70,13 +70,15 @@ } // check with spamassassin if the note is spam or not +/* $spam = shell_exec('echo ' . escapeshellarg($note) . " | $spamassassin -L -e 8"); -if (preg_match('/^X-Spam-Status:.+(?:\n\t.+)*/m', $spam, $match)) { +if (preg_match('/^X-Spam-Status:.+(?:\n\t.+)*'.'/m', $spam, $match)) { $spam_data = $match[0]; } else { $spam_data = 'error matching the SpamAssassin data'; } +*/ @mysql_connect("localhost","nobody", "") @@ -151,8 +153,8 @@ $msg .= "\nProbable Submitter: {$ip}" . ($redirip ? ' (proxied: '.htmlspecialchars($redirip).')' : ''); $msg .= "\n----\n"; - $msg .= $spam_data; - $msg .= "\n----\n"; +// $msg .= $spam_data; +// $msg .= "\n----\n"; $msg .= "Manual Page -- http://www.php.net/manual/en/$sect.php\n"; $msg .= "Edit -- https://master.php.net/note/edit/$new_id\n";

« previous php.mirrors (#32271) next »