[Pypi-checkins] r848 - trunk/appengine
martin.von.loewis
python-checkins at python.org
Tue Aug 10 18:33:26 CEST 2010
Author: martin.von.loewis
Date: Tue Aug 10 18:33:26 2010
New Revision: 848
Modified:
trunk/appengine/handlers.py
Log:
Reject package names with slashes in them.
Modified: trunk/appengine/handlers.py
==============================================================================
--- trunk/appengine/handlers.py (original)
+++ trunk/appengine/handlers.py Tue Aug 10 18:33:26 2010
@@ -15,6 +15,8 @@
path = path.rstrip('/')
if not path:
p = model.MirrorState.all().fetch(1)[0]
+ elif '/' in path:
+ return self.error(404)
else:
p = model.Project.get_by_key_name(path)
if p is None:
More information about the Pypi-checkins
mailing list