From 72c17c8bd849038736623f7932eaa2535c6b2889 Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Sun, 24 Jul 2011 20:37:46 +0100
Subject: [PATCH] use urllib sanely

---
 server/djrandom/frontend/frontend.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/djrandom/frontend/frontend.py b/server/djrandom/frontend/frontend.py
index 30438d8..36a94bb 100644
--- a/server/djrandom/frontend/frontend.py
+++ b/server/djrandom/frontend/frontend.py
@@ -107,8 +107,8 @@ def play_callback(sha1):
 @app.route('/album_image/<artist>/<album>')
 def get_album_image(artist, album):
     img_file = album_images.get_album_image(
-        urllib.urlunquote_plus(artist),
-        urllib.urlunquote_plus(album))
+        urllib.unquote(artist),
+        urllib.unquote(album))
     if not img_file:
         abort(404)
     return send_file(img_file, mimetype='image/jpeg', conditional=True)
-- 
GitLab