mirror of
https://github.com/YunoHost/dynette.git
synced 2024-09-03 20:06:17 +02:00
base64 dns key
This commit is contained in:
parent
8bc0ea6813
commit
9bbf3af4fa
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ end
|
||||||
if params.has_key?("public_key")
|
if params.has_key?("public_key")
|
||||||
public_key = Base64.decode64(params[:public_key])
|
public_key = Base64.decode64(params[:public_key])
|
||||||
unless public_key.length == 24
|
unless public_key.length == 24
|
||||||
halt 400, { :error => "Key is invalid: #{public_key}" }.to_json
|
halt 400, { :error => "Key is invalid: #{public_key.to_s.encode('UTF-8', {:invalid => :replace, :undef => :replace, :replace => '?'})}" }.to_json
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if params.has_key?("subdomain")
|
if params.has_key?("subdomain")
|
||||||
|
|
Loading…
Reference in a new issue