You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_python-commits@quetz.apache.org by gr...@apache.org on 2004/06/30 15:52:00 UTC

cvs commit: httpd-python/lib/python/mod_python apache.py

grisha      2004/06/30 06:52:00

  Modified:    lib/python/mod_python apache.py
  Log:
  Added a check for path_info so that we don't try to get len() of None.
  
  Submitted by:	Dave Wilson
  
  Revision  Changes    Path
  1.83      +2 -2      httpd-python/lib/python/mod_python/apache.py
  
  Index: apache.py
  ===================================================================
  RCS file: /home/cvs/httpd-python/lib/python/mod_python/apache.py,v
  retrieving revision 1.82
  retrieving revision 1.83
  diff -u -r1.82 -r1.83
  --- apache.py	16 Feb 2004 19:47:27 -0000	1.82
  +++ apache.py	30 Jun 2004 13:52:00 -0000	1.83
  @@ -538,7 +538,7 @@
       req.add_common_vars()
       env = req.subprocess_env.copy()
           
  -    if len(req.path_info) > 0:
  +    if req.path_info and len(req.path_info) > 0:
           env["SCRIPT_NAME"] = req.uri[:-len(req.path_info)]
       else:
           env["SCRIPT_NAME"] = req.uri