projects
/
quix0rs-apt-p2p.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eaecf24
)
Fix a bug caused by twisted unquoting URLs received by the web server.
author
Cameron Dale
<camrdale@gmail.com>
Tue, 1 Apr 2008 23:18:00 +0000
(16:18 -0700)
committer
Cameron Dale
<camrdale@gmail.com>
Tue, 1 Apr 2008 23:18:00 +0000
(16:18 -0700)
apt_p2p/HTTPServer.py
patch
|
blob
|
history
diff --git
a/apt_p2p/HTTPServer.py
b/apt_p2p/HTTPServer.py
index 224f411db250a9bf2b2c989a8f3841fa1a9a21e1..b5a858d455b94f6e49749dcfc87cfac291c05497 100644
(file)
--- a/
apt_p2p/HTTPServer.py
+++ b/
apt_p2p/HTTPServer.py
@@
-214,7
+214,8
@@
class TopLevel(resource.Resource):
return None, ()
# Find the file in the database
- hash = unquote_plus(segments[1])
+ # Have to unquote_plus the uri, because the segments are unquoted by twisted
+ hash = unquote_plus(request.uri[3:])
files = self.db.lookupHash(hash)
if files:
# If it is a file, return it