aboutsummaryrefslogtreecommitdiffstats
path: root/util/jwt.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-12-11 13:30:34 +0100
committerKim Alvefur <zash@zash.se>2021-12-11 13:30:34 +0100
commit1eca4e8870f69699f7bc9bbd132a7bf64ca70918 (patch)
treef46fbc10f5c88e0a0468b41f9dc5718b5a7e9aec /util/jwt.lua
parentd4c145179420e6de0d2189059ea988072a7e7e45 (diff)
downloadprosody-1eca4e8870f69699f7bc9bbd132a7bf64ca70918.tar.gz
prosody-1eca4e8870f69699f7bc9bbd132a7bf64ca70918.zip
util.format: Ensure sanitation of strings passed to wrong format
Ie. log("debug", "%d", "\1\2\3") should not result in garbage. Also optimizing for the common case of ASCII string passed to %s and early returns everywhere. Returning nil from a gsub callback keeps the original substring.
Diffstat (limited to 'util/jwt.lua')
0 files changed, 0 insertions, 0 deletions