Bug 2070 - - not allowed in playlist directory name
: - not allowed in playlist directory name
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Playlists
: 6.2.0
: PC Linux (other)
: P2 normal (vote)
: ---
Assigned To: KDF
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-09-03 20:52 UTC by Joel
Modified: 2008-09-15 14:37 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joel 2005-09-03 20:52:38 UTC
The function stripRel in Slim::Utils::Misc.pm does not allow special characters 
in the pathname when converting from relative to absolute paths

Solution:
Replace the following line in sub stripRel
  $file =~ s#\w+[\/\\]\.\.[\///]##isg;
with
  $file =~ s#\[^\/\\]+[\/\\]\.\.[\/\\]##sg;
Comment 1 KDF 2005-09-03 23:16:56 UTC
in trunk at change 4160
Comment 2 Joel 2005-09-04 10:20:38 UTC
!!! ACK !!!

I noticed I introduced a typing error in the bug report fix.
is should read
  $file =~ s#[^\/\\]+[\/\\]\.\.[\/\\]##sg;
NOT
  $file =~ s#\[^\/\\]+[\/\\]\.\.[\/\\]##sg;

Sorry, Joel
Comment 3 KDF 2005-09-04 10:44:57 UTC
committed to svn trunk at change 4163.  please update and confirm.
Comment 4 Chris Owens 2006-06-16 14:41:27 UTC
There are 536 bugs in the database with targets of '---' that were fixed prior to new year 2006.  I am setting them to targets of 6.2.1 to keep them from showing up in my queries.