mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Handle databases with spaces in their names
This commit is contained in:
parent
a9453c4dda
commit
4fdbeb4924
3 changed files with 13 additions and 0 deletions
|
|
@ -203,6 +203,8 @@ class DataView(BaseView):
|
|||
hash = None
|
||||
else:
|
||||
name = db_name
|
||||
if "%" in name:
|
||||
name = urllib.parse.unquote_plus(name)
|
||||
# Verify the hash
|
||||
try:
|
||||
db = self.ds.databases[name]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue