[ or ] in path should be escaped for cover globbing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Exaile |
Fix Released
|
High
|
Unassigned |
Bug Description
affects exaile
assignee sjohannes
status inprogress
importance medium
milestone 0.2.12
Here's what happens if a file has [ or ] in the path. Will need to check
other globbing chars.
[15:09:28] -------
[15:09:28] play ( /usr/lib/
[15:09:28] -------
[15:09:28] Traceback (most recent call last):
[15:09:28] File "/usr/lib/
[15:09:28] self.play_
[15:09:28] File "/usr/lib/
[15:09:28] self.exaile.
[15:09:28] File "/usr/lib/
[15:09:28] cover = self.fetch_
[15:09:28] File "/usr/lib/
[15:09:28] for f in glob.glob(
[15:09:28] File "/usr/lib/
[15:09:28] return list(iglob(
[15:09:28] File "/usr/lib/
[15:09:28] for dirname in dirs:
[15:09:28] File "/usr/lib/
[15:09:28] for name in glob_in_
[15:09:28] File "/usr/lib/
[15:09:28] return fnmatch.
[15:09:28] File "/usr/lib/
[15:09:28] _cache[pat] = re.compile(res)
[15:09:28] File "/usr/lib/
[15:09:28] return _compile(pattern, flags)
[15:09:28] File "/usr/lib/
[15:09:28] raise error, v # invalid expression
[15:09:28] error: bad character range
Changed in exaile: | |
assignee: | Johannes Sasongko (sjohannes) → nobody |
Changed in exaile: | |
status: | Fix Committed → Fix Released |
Proposal; why use glob anyways here?