Author: humbedooh
Date: Sat Aug 3 07:31:53 2019
New Revision: 1864317
URL: http://svn.apache.org/viewvc?rev=1864317&view=rev
Log:
tweak env so cgi doesn't know it's cgi
Modified:
comdev/reporter.apache.org/trunk/site/getjson.py
Modified: comdev/reporter.apache.org/trunk/site/getjson.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/getjson.py?rev=1864317&r1=1864316&r2=1864317&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/getjson.py (original)
+++ comdev/reporter.apache.org/trunk/site/getjson.py Sat Aug 3 07:31:53 2019
@@ -379,7 +379,9 @@ if re.match(r"^[-a-zA-Z0-9_.]+$", user):
kibble = None
if oproject:
try:
- txt = subprocess.check_output(('%s/site/wizard/kibble.py' % RAOHOME_FULL, oproject))
+ xenv = os.environ.copy()
+ del xenv['SCRIPT_NAME']
+ txt = subprocess.check_output(('%s/site/wizard/kibble.py' % RAOHOME_FULL, oproject),
env = xenv)
kibble = json.loads(txt)
except:
pass
|