Re: 404 after sending mail

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

 



On Fri, Jan 22, 2010 at 1:23 PM, bob.33
<bob-old.nabble.com@xxxxxxxxxxxxx> wrote:
>
>
> Paul Lesniewski wrote:
>>
>> Thanks for being so helpful.  I have slightly rewritten this function,
>> and although the ultimate functionality should be identical, it'd be
>> good to have other people test it.  Do you mind?  Here it is:
>>
>> # most non-coding lines removed for brevity by bob.33
>>
>> function php_self() {
>>     $request_uri = '';
>>     $request_uri = '';
>>     if (!sqgetGlobalVar('PHP_SELF', $request_uri, SQ_SERVER)
>>      || empty($request_uri)) {
>>         $request_uri = '';
>>         if (!sqgetGlobalVar('REQUEST_URI', $request_uri, SQ_SERVER)
>>          || empty($request_uri)) {
>>             // TODO: anyone have any other ideas?  maybe
>> $_SERVER['SCRIPT_NAME']???
>>             //
>>             return '';
>>         }
>>     }
>>     $query_string = '';
>>     if (strpos($request_uri, '?') === FALSE
>>      && sqgetGlobalVar('QUERY_STRING', $query_string, SQ_SERVER)
>>      && !empty($query_string)) {
>>         $request_uri .= '?' . $query_string;
>>     }
>>     return $request_uri;
>> }
>>
>
> the new fxn does work as expected, but only if the following line is
> commented out
>
> $_SERVER['SCRIPT_NAME']???

Line wrap problem only.  That's why patch files are better than code
in an email.  Thanks for testing!

> thanks for the help.  my lighttpd+freebsd chassis is available for
> squirrelmail testing anytime.

Much appreciated.  This code will be in the 1.4.20 release coming soon.

-- 
Paul Lesniewski
SquirrelMail Team
Please support Open Source Software by donating to SquirrelMail!
http://squirrelmail.org/donate_paul_lesniewski.php

------------------------------------------------------------------------------
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