Skip to content

Commit

Permalink
Add unquote in GET and POST to line decodeURIComponent in JS
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbruno committed Jun 26, 2024
1 parent 3819a43 commit 6d31961
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bigbashview/usr/lib/bbv/server/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ class url_handler(object):

# Handle GET requests
def GET(self, name=''):
return self.parse_and_call(web.ctx.query[1:], name)
return self.parse_and_call(web.ctx.query[1:], unquote(name))

# Handle POST requests
def POST(self, name=''):
return self.parse_and_call(web.data(), name)
return self.parse_and_call(web.data(), unquote(name))

# Parse the query string and call the appropriate method
def parse_and_call(self, qs, name):
Expand Down

0 comments on commit 6d31961

Please sign in to comment.