torrentool icon indicating copy to clipboard operation
torrentool copied to clipboard

Fix path normalization

Open satyaog opened this issue 3 years ago • 2 comments

Prevent corrupting filename in the case the path is contained in a file name

Ex. from current working dir:

DIR/
DIR/prefix_DIR_suffix.ext

DIR/prefix_DIR_suffix.ext would previously be normalize to prefix__suffix.ext since DIR is found in filename. It should instead be normalized to prefix_DIR_suffix.ext.

satyaog avatar Dec 03 '21 03:12 satyaog

Thank you.  I'll try to review it in a few days.  I'd also want to ask you to add a test covering the issue.

idlesign avatar Dec 04 '21 11:12 idlesign

Will wait for a test.

idlesign avatar Dec 08 '21 02:12 idlesign