Files
Bubberstation/code
SkyratBot 2c2719b894 Fixes string_list procs when used with filepaths. (#62602) (#9272)
I have been trying to load Tram station to show Lemon the smoother tram for a few hours now only to find out someone broke things big time.
I'm adding a sanitize_filepath proc to fix the flunky.

For those ignorant about the issue: Someone has recently modified the procs in the string_list file so they'd sanitize filenames, as a security precaution. Unfortunately, it turns out these procs are also used with filepaths as argument, which use the / as a delimiter between nodes.
Because the SANITIZE_FILENAME macro also purges delimiters (it's supposed to be used on filenames, not paths), this meant file paths were not being loaded correctly. Basically, it has broken map rotation, tcg and wound strings. At least the server hasn't been updated yet.

Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
2021-11-06 20:11:25 +13:00
..