|
Symptoms: When Clicking the “Edit Selected” or the “Delete Selected” button from the Addresses page receive a 404 Page Not found error.
Question:
Investigation: Examined /var/log/httpd/ssl_error_log: [Mon Mar 10 12:33:02 2003] [error] [client 192.168.1.7] File does not exist: /usr/local/squirrelmail/src/quirrelmail, referer: https://sand-dollar/squirrelmail/src/addressbook.php
The File entry is obviously incorrect. The directory should be /usr/local/squirrelmail/src etc.
Inserted debug entries into various functions/*.php files based upon the load order of the require_once entries at the beginning of src/addressbook.php.
The following line from src/validate.php: 105: $PHP_SELF = $_SERVER['PHP_SELF']; before this line the PHP_SELF parameter was: PHP_SELF value is /squirrelmail/src/addressbook.php after this line the PHP_SELF parameter was: PHP_SELF value is quirrelmail/src/addressbook.php
Somehow this call appears to be deleting the first two characters in the PHP_SELF parameter from the $_SERVER[‘PHP_SELF’] setting, or that setting is incorrect.
I modified the src/validate.php as follows: //$PHP_SELF = $_SERVER['PHP_SELF'];
if (isset($PHP_SELF) && !empty($PHP_SELF)) { ; } else if (isset($_SERVER['PHP_SELF']) && !empty($_SERVER['PHP_SELF'])) { $PHP_SELF=$_SERVER['PHP_SELF']; }
System Configuration: Linux version 2.4.18-26.8.0 ([EMAIL PROTECTED]) (gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)) #1 Mon Feb 24 10:21:42 EST 2003
Apache Server version: Apache/2.0.40 Server built: Oct 9 2002 08:01:13
PHP 4.3.1 (cgi), Copyright (c) 1997-2002 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies
Thanks, Tom |
