Changeset 292


Ignore:
Timestamp:
02/13/07 17:18:58 (4 years ago)
Author:
bart
Message:

Check if those array indices are set before testing them in control.php

Location:
eaccelerator/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • eaccelerator/trunk/ChangeLog

    r291 r292  
    77        * Cleanup: Removed some commented out code, changed some debug statements, 
    88            reordered some conditional includes to reduce ifdef statements 
     9        * Check if those array indices are set before testing them in control.php 
    910 
    10112007-01-29  Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> 
  • eaccelerator/trunk/control.php

    r285 r292  
    5555 
    5656// Authenticate before proceeding 
    57 if ($auth && ($_SERVER['PHP_AUTH_USER'] != $user || $_SERVER['PHP_AUTH_PW'] != $pw)) { 
     57if ($auth && (!isset($_SERVER['PHP_AUTH_USER']) || !isset($_SERVER['PHP_AUTH_PW']) || 
     58        $_SERVER['PHP_AUTH_USER'] != $user || $_SERVER['PHP_AUTH_PW'] != $pw)) { 
    5859    header('WWW-Authenticate: Basic realm="eAccelerator control panel"'); 
    5960    header('HTTP/1.0 401 Unauthorized'); 
Note: See TracChangeset for help on using the changeset viewer.