You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by pd...@apache.org on 2019/06/17 16:24:34 UTC

svn commit: r1861523 - /spamassassin/trunk/rulesrc/sandbox/pds/20_php.cf

Author: pds
Date: Mon Jun 17 16:24:34 2019
New Revision: 1861523

URL: http://svn.apache.org/viewvc?rev=1861523&view=rev
Log:
PHP tweaks

Modified:
    spamassassin/trunk/rulesrc/sandbox/pds/20_php.cf

Modified: spamassassin/trunk/rulesrc/sandbox/pds/20_php.cf
URL: http://svn.apache.org/viewvc/spamassassin/trunk/rulesrc/sandbox/pds/20_php.cf?rev=1861523&r1=1861522&r2=1861523&view=diff
==============================================================================
--- spamassassin/trunk/rulesrc/sandbox/pds/20_php.cf (original)
+++ spamassassin/trunk/rulesrc/sandbox/pds/20_php.cf Mon Jun 17 16:24:34 2019
@@ -11,18 +11,18 @@ describe PDS_PHP_RUNTIME_FUNC PHP header
 score    PDS_PHP_RUNTIME_FUNC 1.5
 reuse    PDS_PHP_RUNTIME_FUNC
 
-header   __PDS_X_PHP_WPCONTENT  X-PHP-Script =~ /\/wp-content\/(themes|uploads)\/[\S]+\.php for/i
-header   __PDS_X_PHP_WPINCLUDES X-PHP-Script =~ /\/wp-includes\/(js|css)\/[\S]+\.php for/i
-header   __PDS_X_PHP_WPADMIN    X-PHP-Script =~ /\/wp-admin\/(css|themes|js)\/[\S]+\.php for/i
+header   __PDS_X_PHP_WPCONTENT  X-PHP-Script =~ m;/wp-content/(themes|uploads)/[\S]+\.php for;i
+header   __PDS_X_PHP_WPINCLUDES X-PHP-Script =~ m;/wp-includes/(js|css)/[\S]+\.php for;i
+header   __PDS_X_PHP_WPADMIN    X-PHP-Script =~ m;/wp-admin/(css|themes|js)/[\S]+\.php for;i
 
 meta     PDS_X_PHP_WP_EXP (__PDS_X_PHP_WPCONTENT || __PDS_X_PHP_WPINCLUDES || __PDS_X_PHP_WPADMIN)
 describe PDS_X_PHP_WP_EXP X-PHP-Script shows sent from a Wordpress PHP script where you would not expect one
 score    PDS_X_PHP_WP_EXP 1.5
 reuse    PDS_X_PHP_WP_EXP
 
-header   __PDS_X_PHP_WELLKNOWN   X-PHP-Script =~ /\/\.well-known\/pki-validation\//
+header   __PDS_X_PHP_WELLKNOWN   X-PHP-Script =~ m;/\.well-known/;
 
 meta     PDS_X_PHP_WELLKNOWN __PDS_X_PHP_WELLKNOWN
-describe PDS_X_PHP_WELLKNOWN X-PHP-Script shows sent from a PHP script in the /.well-known/pki-validation/ dir
+describe PDS_X_PHP_WELLKNOWN X-PHP-Script shows sent from a PHP script in the /.well-known/ dir
 score    PDS_X_PHP_WELLKNOWN 1.0
 reuse    PDS_X_PHP_WELLKNOWN