Author: chrisz
Date: Tue Jan 11 07:33:19 2011
New Revision: 7199
URL: http://trac.turbogears.org/changeset/7199
Log:
Small improvement in VirtualPathDispatcher:
Do not check the webpath for internal redirects.
Modified:
branches/1.5/turbogears/dispatchers.py
Modified: branches/1.5/turbogears/dispatchers.py
==============================================================================
--- branches/1.5/turbogears/dispatchers.py Tue Jan 11 07:28:39 2011
(r7198)
+++ branches/1.5/turbogears/dispatchers.py Tue Jan 11 07:33:19 2011
(r7199)
@@ -40,7 +40,8 @@
else:
# check for webpath only if not forwarded
try:
- if not request.wsgi_environ['HTTP_X_FORWARDED_SERVER']:
+ if not request.prev and not request.wsgi_environ[
+ 'HTTP_X_FORWARDED_SERVER']:
raise KeyError
except (AttributeError, KeyError):
raise NotFound(path_info)