Fixed quoting on foreign-key links to tables with spaces in name

This commit is contained in:
Simon Willison 2017-11-24 16:05:28 -08:00
commit e3dd2483bb
No known key found for this signature in database
GPG key ID: FBB38AFE227189DB

View file

@ -442,7 +442,7 @@ class RowTableShared(BaseView):
'<a href="/{database}-{database_hash}/{table}/{id}">{label}</a>&nbsp;<em>{id}</em>'.format(
database=database,
database_hash=database_hash,
table=escape_sqlite_table_name(other_table),
table=urllib.parse.quote_plus(other_table),
id=value,
label=label,
)