Re: 404 after sending mail

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

 




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']???

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


-- 
View this message in context: http://old.nabble.com/404-after-sending-mail-tp13112479p27280180.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