commit 51b57f96862004e0a8f80ff291a78624d45718d6
Author: Pavel Sanda <[email protected]>
Date: Sun Oct 11 23:05:32 2026 +0200
Better document sanitizeFileName.
Assisted-by: Claude Opus 5
---
src/support/filetools.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/support/filetools.cpp b/src/support/filetools.cpp
index 0fff08f5f8..e4d48d0740 100644
--- a/src/support/filetools.cpp
+++ b/src/support/filetools.cpp
@@ -1279,6 +1279,9 @@ std::string toHexHash(const std::string & str, bool
shorten)
}
+// This keep-set is what starves the helper scripts of shell metacharacters:
+// convertDefault.py, fig2pstex.py, fig2pdftex.py and docbook2epub.py pass
filenames
+// into os.system(). Re-audit DocFileName::mangledFileName if the set ever
changes.
std::string sanitizeFileName(const std::string & str)
{
// The list of characters to keep is probably over-restrictive,
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs