From: Reini U. <ru...@x-...> - 2004-05-16 20:11:11
|
Whit Blauvelt schrieb: > It would be a pretty simple patch to cover this, but I don't know offhand > what the ORIG_ prefix means - is it just a customization your host has made? > I don't see any mention at all on php.net. So it's probably a patch that > would only make sense on your host, that you'd best handle on your own. > > Anyway, the patch to insert would look something like: > > if (!isset($PATH_INFO)&&isset($ORIG_PATH_INFO)) { > $PATH_INFO=$ORIG_PATH_INFO; > } if (USE_PATH_INFO && !isset($_SERVER['PATH_INFO']) && isset($_SERVER['ORIG_PATH_INFO'])) { $_SERVER['PATH_INFO'] = $_SERVER['ORIG_PATH_INFO']; } Somewhere in IniConfig.php:fix_config() or if you omit the USE_PATH_INFO check, you can put it into index.php also. That's the smallest file. The first usage is very late, in main.php:_deducePagename() > Where to put that? Before the first time $PATH_INFO gets called in each pass > through. Shouldn't be too hard to find, but I haven't looked. > > Whit > > On Sun, May 16, 2004 at 08:58:34PM +0200, Oliver Betz wrote: > >>Hello All, >> >>after a server update (now PHP 4.3.6 running as CGI with >>Apache/1.3.29) at my web hoster, PATH_INFO is empty, and the >>information contained now in ORIG_PATH_INFO. The same for >>PATH_TRANSLATED, but PhpWiki doesn't seem to use this. >> >>I don't know whether this can/will be changed on the part of the >>hoster, but maybe there is a simple way for me to adapt PhpWiki. >> >>Any hint how I can solve this problem with minimal changes tp PhpWiki >>code? I want to avoid to patch future PhpWiki installations, so maybe >>a simple solution is to copy the contents of ORIG_PATH_INFO to >>PATH_INFO? >> >>I have to admit that I have only rudimentary knowledge about PHP. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |