[cgiwrap-users] problem with PATH_TRANSLATED
Brought to you by:
nneul
From: Akop P. <akopps@CSUA.Berkeley.EDU> - 2003-06-29 13:55:03
|
When testing cgiwrap 3.8, I noticed that PATH_TRANSLATED is being set to DOCUMENT_ROOT. I think this is happening because of this statement in SetPathTranslated in util.c: buf = strstr(new_pt, old_pi); It doesn't take into account that the user name in old_pi might contain a tilde in front of it ( e.g. /~user/cgi-bin/test.cgi). I have copied and pasted the old version of this function for now since it works fine for my purposes. -akop |