Skip to content

Commit

Permalink
Respect |option=value with URIUtils::GetDirectory
Browse files Browse the repository at this point in the history
Keep the |option=value for dav/http paths when getting the directory
part. This is required when playing video from webdav with options like
auth=digest

This solves bug #10862.
  • Loading branch information
gonzzor committed Aug 9, 2011
1 parent e5d5c1f commit c7b17b2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions xbmc/utils/URIUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,14 @@ void URIUtils::GetDirectory(const CStdString& strFilePath,
if (iPos1 > 0)
{
strDirectoryPath = strFilePath.Left(iPos1 + 1); // include the slash

// Keep possible |option=foo options for certain paths
iPos2 = strFilePath.ReverseFind('|');
if (iPos2 > 0)
{
strDirectoryPath += strFilePath.Mid(iPos2);
}

}
}

Expand Down

0 comments on commit c7b17b2

Please sign in to comment.