Skip to content

Commit be008e6

Browse files
mk-pmbdirkf
authored andcommitted
[core] Fix format string injection for metadata JSON filename message.
1 parent b1bbc1e commit be008e6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

youtube_dl/YoutubeDL.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2635,12 +2635,12 @@ def msg(fmt, lbl):
26352635
self.to_screen(msg('[info] %s is already present', label.title()))
26362636
return 'exists'
26372637
else:
2638-
self.to_screen(msg('[info] Writing %s as JSON to: ' + infofn, label))
2638+
self.to_screen(msg('[info] Writing %s as JSON to: ', label) + infofn)
26392639
try:
26402640
write_json_file(self.filter_requested_info(info_dict), infofn)
26412641
return True
26422642
except (OSError, IOError):
2643-
self.report_error(msg('Cannot write %s to JSON file ' + infofn, label))
2643+
self.report_error(msg('Cannot write %s to JSON file ', label) + infofn)
26442644
return
26452645

26462646
def _write_thumbnails(self, info_dict, filename):

0 commit comments

Comments
 (0)