Sanitise asset names after potentially failed %-based substitutions (#945).
authorCarl Hetherington <cth@carlh.net>
Thu, 7 Sep 2023 21:24:06 +0000 (23:24 +0200)
committerCarl Hetherington <cth@carlh.net>
Thu, 7 Sep 2023 21:24:08 +0000 (23:24 +0200)
commit77df016da7f8e1ee3f31c2a0d147c939e78add97
tree3fee8b0c893858dc86afdbe7cf1163c97d325057
parent5a1966c187c189da43a650f1425b29190f5cfe78
Sanitise asset names after potentially failed %-based substitutions (#945).

If there's a %x in the format string, where %x is not recognised, we
should at least remove the %.
src/lib/util.cc
test/file_naming_test.cc