Fixes unicode profile names in backend.
This commit is contained in:
parent
c32daefec7
commit
3054be9111
1 changed files with 3 additions and 2 deletions
|
|
@ -1391,11 +1391,12 @@ routes:
|
|||
get "/profile/@username":
|
||||
cond "username" in request.params
|
||||
|
||||
let username = decodeUrl(@"username")
|
||||
const threadsQuery =
|
||||
sql"""select name from person where name = ? and isDeleted = 0;"""
|
||||
|
||||
let value = getValue(db, threadsQuery, @"username")
|
||||
if value == @"username":
|
||||
let value = getValue(db, threadsQuery, username)
|
||||
if value == username:
|
||||
pass
|
||||
else:
|
||||
redirect uri("/404")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue