diff options
author | Kim Alvefur <zash@zash.se> | 2021-12-11 13:30:34 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-12-11 13:30:34 +0100 |
commit | 1eca4e8870f69699f7bc9bbd132a7bf64ca70918 (patch) | |
tree | f46fbc10f5c88e0a0468b41f9dc5718b5a7e9aec /spec/scansion/vcard_temp.scs | |
parent | d4c145179420e6de0d2189059ea988072a7e7e45 (diff) | |
download | prosody-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 'spec/scansion/vcard_temp.scs')
0 files changed, 0 insertions, 0 deletions