# HG changeset patch # User Kim Alvefur # Date 1570370846 -7200 # Node ID c0a94419c28e4422f0315e42cc6810a35049e07f # Parent 2fadbf2096788ad9242793dbc70927499f337a9a util.sasl.scram: Avoid implicit coersion of number to string Lua can be compiled without coercion, which would cause an error here. diff -r 2fadbf209678 -r c0a94419c28e util/sasl/scram.lua --- a/util/sasl/scram.lua Sat Oct 05 18:10:12 2019 +0200 +++ b/util/sasl/scram.lua Sun Oct 06 16:07:26 2019 +0200 @@ -190,7 +190,7 @@ end local nonce = clientnonce .. generate_uuid(); - local server_first_message = "r="..nonce..",s="..base64.encode(salt)..",i="..iteration_count; + local server_first_message = ("r=%s,s=%s,i=%d"):format(nonce, base64.encode(salt), iteration_count); self.state = { gs2_header = gs2_header; gs2_cbind_name = gs2_cbind_name;