Skip to content

icon file with two ' characters in path fail to load #1307

@shmibs

Description

@shmibs

Issue description

the commit adding wordexp in string_to_path, e9a27c0 , seems to have introduced an error parsing file paths with an even number of 's. i've noticed because of an mpd status script which displays with icons contained in the music directory, hence lots of odd file names and directories

it seems an odd number of ' errors out with WRDE_SYNTAX and returns the string without expansion... which in my case is a success, as the file path is unmodified. when an even number of ' is present though, they're stripped away, returning an invalid file path without them

if there's some effective way to escape these with \ i also haven't figured it out

Installation info

  • Version: both 1.10.0 (2024-02-19) and latest git

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions