Assembla home | Assembla project page
 

Ticket #136 (new Bug Report)

Opened 7 months ago

Last modified 1 week ago

file_albumart causes errors with UNC paths and no album art

Reported by: garfoot Assigned to:
Priority: Medium Milestone: Undecided
Component: Core Functionality Version: 1.19
Keywords: Cc:

Description

This function searches up the directory tree until it finds artwork or runs out of path to search. However with UNC paths it needs to stop earlier as when the path is reduced to just \\HOSTNAME open_dir (as used by find_in_dir) will throw an error.

Need to add a check for any path starting with // and with no further /'s and return if that's found.

elseif ((0 == strncmp($fsp, '//', 2)) && (strrpos(dirname($fsp), '/') == 1))
{
  // Its a UNC path with just a hostname
  return '';
}

Change History

06/23/08 22:00:02 changed by Pernod

  • milestone changed from 1.20 to 1.21.

08/31/08 00:39:07 changed by Pernod

  • milestone changed from 1.21 to Undecided.