From df1f02b44a1844a17ae29165399772833d671240 Mon Sep 17 00:00:00 2001 From: Stu Leak Date: Fri, 9 Jan 2026 22:24:53 -0500 Subject: [PATCH] fix(author): sanitize log filenames to remove special characters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Applied sanitizeForPath to log filenames in createAuthorLog to ensure log files don't contain special characters like apostrophes. Before: ifuckedmybestfriend'sgirlfriend-author.videotools.log After: ifuckedmybestfriendsgirlfriend-author.videotools.log This prevents filesystem issues and improves consistency with output filenames. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- author_module.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/author_module.go b/author_module.go index 52070e8..98b8562 100644 --- a/author_module.go +++ b/author_module.go @@ -3184,6 +3184,11 @@ func createAuthorLog(inputs []string, outputPath string, makeISO bool, region, a if base == "" { base = "author" } + // Sanitize log filename to remove special characters + base = sanitizeForPath(base) + if base == "" { + base = "author" + } logPath := filepath.Join(getLogsDir(), base+"-author"+conversionLogSuffix) if err := os.MkdirAll(filepath.Dir(logPath), 0o755); err != nil { return nil, logPath, fmt.Errorf("create log dir: %w", err)