Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Oct 2018 00:46:40 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 232590] Port Update: security/maia - Bug fix and update to use PHP mysqli.
Message-ID:  <bug-232590-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D232590

            Bug ID: 232590
           Summary: Port Update: security/maia - Bug fix and update to use
                    PHP mysqli.
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: ek@purplehat.org

Created attachment 198529
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D198529&action=
=3Dedit
Patch to update port Makefile and distinfo.

Small bit of code added to fix a bug when "autolearn_status =3D=3D NULL". M=
ore
specifically:

=3D=3D
diff --git a/maiad b/maiad
index e74f18d..56f3973 100755
--- a/maiad
+++ b/maiad
@@ -4294,7 +4294,13 @@ sub maia_record_tests($$$$$) {
     if (!$mail_score) {
           $mail_score =3D 0.0;
     }
+
+    my($autolearn_status, $autolearn_status_force) =3D split(' ',
$autolearn_status);
     $autolearn_status =3D validate($autolearn_status, '^([a-z]{2,15})$', '=
si');
+    if(!$autolearn_status) {
+        $autolearn_status =3D 'unavailable';
+    }
+
     my $test_list =3D validate($spam_status, 'tests=3D(.*)', 'si');
     $test_list =3D~ s/[\s\t\n]//g;
     my @tests =3D split ",", $test_list;
=3D=3D

Also switched dependencies to use PHP's mysqli as opposed to mysql.
Update portversion to 1.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-232590-7788>