Gracefully handle wrong capitalization of username
This commit is contained in:
@@ -3,7 +3,7 @@ class WebKeyDirectoryController < WellKnownController
|
||||
|
||||
# /.well-known/openpgpkey/hu/:hashed_username(.txt)
|
||||
def show
|
||||
@user = User.find_by(cn: params[:l])
|
||||
@user = User.find_by(cn: params[:l].downcase)
|
||||
|
||||
if @user.nil? ||
|
||||
@user.pgp_pubkey.empty? ||
|
||||
|
||||
Reference in New Issue
Block a user