PATH_INFO and ORIG_PATH_INFO

0 views
Skip to first unread message

subgr

unread,
Nov 26, 2009, 8:22:03 AM11/26/09
to Mozilla Labs Weave Server Users
In the server\user\1\index.php you are using PATH_INFO to get the
path:
$path = array_key_exists('PATH_INFO', $_SERVER) ? $_SERVER
['PATH_INFO'] : '/';

That didn’t work for me, that’s why I converted it to:
if (!empty($_SERVER['PATH_INFO']))
$path = array_key_exists('PATH_INFO', $_SERVER) ? $_SERVER
['PATH_INFO'] : '/';
else if (!empty($_SERVER['ORIG_PATH_INFO']))
$path = array_key_exists('ORIG_PATH_INFO', $_SERVER) ? $_SERVER
['ORIG_PATH_INFO'] : '/';

Is there any reason that you don’t have both? I noticed that in your
minimal server you are using both. If there is no reason not using
both of them then It will be nice to have it included in your code, so
there is no need of changing anything when updating.

I am using the b486c76b35f8 2009-11-24 version of the server
successfully on share hosting.

Thanks for this great software.

Metabaron

unread,
Nov 26, 2009, 9:21:08 AM11/26/09
to Mozilla Labs Weave Server Users
For the record, this is perfectly working for me (after I succeed in
installation the latest version of mozilla weave server of course).
Maybe something in your virtual host configuration?

Mathieu

Toby Elliott

unread,
Nov 27, 2009, 1:02:47 PM11/27/09
to mozilla-labs-we...@googlegroups.com
Changed in the latest push of the server.

Toby
Reply all
Reply to author
Forward
0 new messages