fix(author): sanitize log filenames to remove special characters

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.
This commit is contained in:
Stu Leak 2026-01-09 22:24:53 -05:00
parent a4a1c071fd
commit f964568c15

View File

@ -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)