[Moin-devel] CVS: MoinMoin/webapi cgiMoin.py,1.11,1.12

J?rgen Hermann jhermann at users.sourceforge.net
Mon Apr 8 11:48:17 EDT 2002


Update of /cvsroot/moin/MoinMoin/webapi
In directory usw-pr-cvs1:/tmp/cvs-serv26067

Modified Files:
	cgiMoin.py 
Log Message:
Return empty string for script name "/"


Index: cgiMoin.py
===================================================================
RCS file: /cvsroot/moin/MoinMoin/webapi/cgiMoin.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** cgiMoin.py	13 Feb 2002 21:13:55 -0000	1.11
--- cgiMoin.py	8 Apr 2002 18:47:41 -0000	1.12
***************
*** 24,30 ****
             os.environ.get('SSL_PROTOCOL_VERSION', '') != ''
  
  def getScriptname():
      """ Return the scriptname part of the URL ("/path/to/my.cgi"). """
!     return os.environ.get('SCRIPT_NAME', '')
  
  
--- 24,33 ----
             os.environ.get('SSL_PROTOCOL_VERSION', '') != ''
  
+ 
  def getScriptname():
      """ Return the scriptname part of the URL ("/path/to/my.cgi"). """
!     name = os.environ.get('SCRIPT_NAME', '')
!     if name == '/': return ''
!     return name
  
  





More information about the Moin-devel mailing list