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. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
fb90d17304
commit
df1f02b44a
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user