Apache getenv bug?
Apache getenv bug?
This is info from the server: SERVER_SOFTWARE =Stronghold/2.2 Apache/1.2.5 C2NetUS/2002/php3.0.3 This is the code that had some problem: fprintf(fp, "%s:%s\t%s\t%s<BR>\n", getenv("REMOTE_USER"), rhost, ctime(<ime), getenv("HTTP_USER_AGENT")); Most of the time it returned the REMOTE_USER correctly, which was the username used to login. On three occasions it returned wrong info, and all happened to a user that was using Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 The three errors that I noticed were beginning with dex.cgi: blah blah blah i/shh/index.cgi: blah blah blah webmaster@otokoart.com: blah blah blah I expect the getenv("REMOTE_USER") to return 'Bush' if 'Bush' was the login username. It did work most of the time. Bush: blah blah blah |
I would imagine it just doesn't recognized the MacOS logged in user, depending on the OS, how they logged in, etc. If you think its a real bug, why not submit it to Apache.. ;)
|
All times are GMT -5. The time now is 07:00 PM. |