[ moin-Bugs-783291 ] test for local request does not work
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.comp.web.wiki.moin.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #783291, was opened at 2003-08-05 06:47
Message generated for change (Comment added) made by thomaswaldmann
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108482&aid=783291&group_id=8482
Category: None
Group: None
>Status: Closed
Resolution: None
Priority: 5
Submitted By: Giuseppe Scelsi (gscelsi)
Assigned to: Nobody/Anonymous (nobody)
Summary: test for local request does not work
Initial Comment:
Moin 1.0, cgimain.py
The test for local request does not work. Changing
SERVER_NAME to SERVER_ADDR, as shown below, seems to
fix the problem.
# check if the request is a local one
import socket
local_request =
socket.getfqdn(os.environ.get('SERVER_ADDR')) == socket.getfqdn(os.environ.get('REMOTE_ADDR'))
----------------------------------------------------------------------
>Comment By: Thomas Waldmann (thomaswaldmann)
Date: 2004-01-12 04:25
Message:
Logged In: YES
user_id=100649
should be fixed in 1.2 devel version, maybe in 1.1, too.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108482&aid=783291&group_id=8482
-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html