E&S CVS Commit: PEAK - Fix an edge case in path shifting/traversal: if SCRIPT_NAME is '' and
pje at eby-sarna.com
pje at eby-sarna.com
Thu Oct 7 00:38:00 EDT 2004
Module Name: PEAK
Committed By: pje
Date: Thu Oct 7 04:37:22 UTC 2004
Modified Files:
PEAK/src/wsgiref: util.py
PEAK/src/wsgiref/tests: test_util.py
Log Message:
Fix an edge case in path shifting/traversal: if SCRIPT_NAME is '' and
PATH_INFO is '/', then shifting should yield an empty name, SCRIPT_INFO
should become '/', and PATH_INFO should become ''. This breaks the normal
rules about SCRIPT_NAME never ending with '/', and some tests needed
updating for this.
To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/PEAK/src/wsgiref/util.py.diff?r1=1.2&r2=1.3
http://cvs.eby-sarna.com/PEAK/src/wsgiref/tests/test_util.py.diff?r1=1.3&r2=1.4
To generate a diff of this commit:
cvs rdiff -r1.2 -r1.3 PEAK/src/wsgiref/util.py
cvs rdiff -r1.3 -r1.4 PEAK/src/wsgiref/tests/test_util.py
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
More information about the source-changes
mailing list