Re: 404 after sending mail

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




bob.33 wrote:
> 
> 
> Tomas Kuliavas wrote:
>> 
>> 
>> Let's start by finding why autodetection fails. Looks like PHP_SELF is
>> missing. PHP upgrade should not change things. I don't see any similar
>> things in changelog. It might be one of FastCGI setup differences or some
>> SquirrelMail security updates corrupt PHP_SELF.
>> 
>> Could you create test script with
>> ---
>> <?php
>> header('Content-Type: text/plain;');
>> var_dump($_SERVER);
>> ---
>> put it in SquirrelMail src directory, run it same way as you run
>> configtest.php (http://mail.example.org/src/test.php) and show script
>> output. Replace domain info with 'example.org'. Or test PHP settings
>> according to SquirrelMail docs
>> (http://www.squirrelmail.org/wiki/TestPHPSettings) and show PHP variables
>> table.
>> 
> 
> PHP_SELF seems to return a zero-byte string.  the script you suggested
> renders thusly:
> ...
>   ["REQUEST_URI"]=>
>   string(13) "/src/test.php"
>   ["QUERY_STRING"]=>
>   string(0) ""
>   ["PHP_SELF"]=>
>   string(0) ""
> ...
> 

Could you check http://mail.example.org/src/test.php?test and see if
REQUEST_URI includes '?test' part?

Older SquirrelMail versions used REQUEST_URI, PHP_SELF and QUERY_STRING
variables. Use of REQUEST_URI was disabled in 1.4.10. You can reenable it by
reverting this patch
(http://squirrelmail.svn.sourceforge.net/viewvc/squirrelmail/tags/rel-1_4_10a/functions/strings.php?r1=11983&r2=12112&view=patch).
Please note that correct fix is not that simple and by reverting to
REQUEST_URI you bypass some security checks. Correct fix is more complex.
File bug report on SquirrelMail bug tracker.

If you want you could try upgrading your PHP setup in desperate hope than
newer version adds PHP_SELF variable. Correct fix is to make SquirrelMail
use REQUEST_URI, when PHP_SELF is not available.

-- 
Tomas
-- 
View this message in context: http://old.nabble.com/404-after-sending-mail-tp13112479p27221691.html
Sent from the squirrelmail-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux