[Koha-bugs] [Bug 22838] New: Warning from runreport.pl 'Explicitly setting a MIME header field (content-type) is dangerous'

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri May 3 16:26:13 CEST 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22838

            Bug ID: 22838
           Summary: Warning from runreport.pl  'Explicitly setting a MIME
                    header field (content-type) is dangerous'
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Command-line Utilities
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: nick at bywatersolutions.com
        QA Contact: testopia at bugs.koha-community.org
                CC: robin at catalyst.net.nz
  Target Milestone: ---

Explicitly setting a MIME header field (content-type) is dangerous:
use the attr() method instead.
 at misc/cronjobs/runreport.pl line 312.


It seems the error comes from Koha/Email.pm:
 72     $mail{'Content-Type'} = $params->{contenttype} if
$params->{contenttype};

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list