You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when run this results in mangled output because scanvars
attempts to evaluate '\n'.join(L) where L=['',None]. A
fix is to set value=UNDEF at the start of scanvars.
The script cgitb_scanvars_bug.py produces mangled output
under 2.3.3 and 2.4a0. The error is caused by an error
during evaluation in cgitb.scanvars. I believe a fix is to
intialize value to __UNDEF__.
Patch python-2.4a0-966992.patch appears to fix in 2.3.3 and
2.4a0. There may be other ways in which scanvars can error,
but I haven't found them yet :(
Activity
rgbecker commentedon Jun 5, 2004
Under certain circumstances cgitb.scanvars fails with
because of an unititialized value variable. This bug is
present in 2.3.3 and 2.4a0.
The following script demonstrates
#####start
import cgitb;cgitb.enable()
when run this results in mangled output because scanvars
attempts to evaluate '\n'.join(L) where L=['',None]. A
fix is to set value=UNDEF at the start of scanvars.
Index: cgitb.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/cgitb.py,v
retrieving revision 1.11
diff -r1.11 cgitb.py
63c63
< vars, lasttoken, parent, prefix = [], None, None, ''
---
None, None, '', __UNDEF__
rgbecker commentedon Jun 5, 2004
Logged In: YES
user_id=6946
The script cgitb_scanvars_bug.py produces mangled output
under 2.3.3 and 2.4a0. The error is caused by an error
during evaluation in cgitb.scanvars. I believe a fix is to
intialize value to __UNDEF__.
Patch python-2.4a0-966992.patch appears to fix in 2.3.3 and
2.4a0. There may be other ways in which scanvars can error,
but I haven't found them yet :(
akuchling commentedon Jun 5, 2004
Logged In: YES
user_id=11375
Applied; thanks!