Blender Git Loki

Git Commits -> Revision 3ec7cf6

Revision 3ec7cf6 by Campbell Barton (master)
December 10, 2020, 05:12 (GMT)
Fix BLI_str_quoted_substrN use with escaped strings

BLI_str_quoted_substrN didn't unescape the resulting string,
yet all callers were using this with animation paths which are
created using BLI_str_escape().

- Fix BLI_str_quoted_substrN use with escaped strings by calling
BLI_str_unescape().

Note that it's possible we want an a version of this function that
keeps escape characters. This could be added if it's required.

- Fix end quote detection using BLI_str_escape_find_quote
checking for `"` isn't reliable since an even number of back-slashes
before a quote means it's not escaped.

Commit Details:

Full Hash: 3ec7cf64bcf8b8bfa098529c784d73c41f46a348
Parent Commit: 2814cdb
Lines Changed: +14, -19

1 Modified Path:

/source/blender/blenlib/intern/string.c (+14, -19) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021