Permalink
Browse files

added unquote to handle any form of url encoding

  • Loading branch information...
1 parent b533a9b commit a72d050a32b4431842a0688452df74a9a2f51406 @sbaer committed Aug 24, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 api/apihandler.py
View
@@ -5,6 +5,7 @@
from google.appengine.ext import db
# appengine still uses python 2.5, when it upgrades we can use the built-in json module
from django.utils import simplejson as json
+import urllib
def getapi_schemename(path_url, prefix_url):
@@ -41,6 +42,7 @@ class AppSettingsHandler(webapp.RequestHandler):
def get(self):
scheme = getapi_schemename(self.request.path, AppSettingsHandler.prefix_url)
if scheme:
+ scheme = urllib.unquote(scheme)
item = RhinoAppSettings.get_from_db(scheme)
if item: self.response.out.write(item.settings)
else: self.error(404) #not found

0 comments on commit a72d050

Please sign in to comment.