f2 icon indicating copy to clipboard operation
f2 copied to clipboard

Expanded variables are not sanitized properly

Open ryze312 opened this issue 10 months ago • 1 comments

Expanded variables (like ID3 tags) are not sanitized and escaped properly. For example:

> mediainfo "19. D_1993 F2.flac"
Track name: D/1993 F2

> f2 -r "{%02d}. {id3.title}{ext}" "19. D_1993 F2.flac"
*————————————————————*————————————————————*————————*
|      ORIGINAL      |      RENAMED       | STATUS |
*————————————————————*————————————————————*————————*
| 19. D_1993 F2.flac | 19. D/1993 F2.flac | ok     |
*————————————————————*————————————————————*————————*

> f2 -x -r "{%02d}. {id3.title}{ext}" "19. D_1993 F2.flac"
> ls
'19. D'

> ls "19. D"
'1993 F2.flac'

ryze312 avatar Mar 29 '24 19:03 ryze312

This is a bug. I will reproduce and fix it accordingly, thanks!

ayoisaiah avatar Apr 04 '24 06:04 ayoisaiah

Thanks!

ryze312 avatar Jul 09 '24 21:07 ryze312