Changeset 591


Ignore:
Timestamp:
Nov 20, 2013, 9:47:29 PM (11 years ago)
Author:
chronos
Message:
  • Fixed: Report correct HTTP response code for unknown pages.
Location:
trunk/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/Version.php

    r590 r591  
    55// and system will need database update
    66
    7 $Revision = 590; // Subversion revision
     7$Revision = 591; // Subversion revision
    88$DatabaseRevision = 585;  // Database structure revision,
    9 $ReleaseTime = '2013-11-19';
     9$ReleaseTime = '2013-11-20';
  • trunk/includes/system.php

    r590 r591  
    200200  function PageNotFound()
    201201  {
     202        // Send correct HTTP status code to signal unknown page
     203        if(array_key_exists('SERVER_PROTOCOL', $_SERVER))
     204          Header($_SERVER['SERVER_PROTOCOL'].' 404 Not Found');
    202205        if(array_key_exists('HTTP_REFERER', $_SERVER)) $Referer = ' Referer: '.$_SERVER['HTTP_REFERER'];
    203206          else $Referer = '';
Note: See TracChangeset for help on using the changeset viewer.