1
0
-1

Hi folks, it's been a while.

I just built a new OA community server with WAMP, and I am finding a couple of issues. 

First, I get this Warning message on all pages.  I could set the app to Production and ignore all warnings, but figured to ask first what is this about.  

A PHP Error was encountered
Severity: Warning
Message: Header may not contain more than a single header, new line detected
Filename: views/v_template.php
Line Number: 52


Second, I seem to be getting logged off constantly.  How do I troubleshoot this?


Here's my setup:

You are running version 4.4.1 of Open-AudIT.
Your Host is: (edited), and it's OS is Microsoft Windows Server 2016 Standard.
Your database platform is mysqli (version 10.3.14-MariaDB).
Your web server is Apache (2.4.57)
Your PHP version is 7.3.5 and it's current time is 2023-04-07 09:41:54.

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      That code hasn't been touched in (literally) years.

      You could remove the new lines from the string created starting on line 35.

      From

      $header = "
          connect-src 'self' opmantek.com community.opmantek.com services.opmantek.com;
          font-src 'self';
          form-action 'self';
          frame-ancestors 'none';
          frame-src 'none';
          img-src 'self' data:;
          manifest-src 'none';
          media-src 'none';
          object-src 'none';
          script-src 'self' 'unsafe-inline' maps.googleapis.com maps.google.com;
          style-src 'self' 'unsafe-inline';
          worker-src 'self';
          ";

      to

      $header = "connect-src 'self' opmantek.com community.opmantek.com services.opmantek.com; font-src 'self'; form-action 'self'; frame-ancestors 'none'; frame-src 'none'; img-src 'self' data:; manifest-src 'none'; media-src 'none'; object-src 'none'; script-src 'self' 'unsafe-inline' maps.googleapis.com maps.google.com; style-src 'self' 'unsafe-inline'; worker-src 'self';";
        CommentAdd your comment...