fixes incorrect parsing of filenames containing @ characters
IsProtocol("virtualpath") ||
IsProtocol("multipath") ||
IsProtocol("filereader") ||
- IsProtocol("special")
+ IsProtocol("special") ||
+ IsProtocol("resource")
)
{
SetFileName(strURL.substr(iPos));
return false;
// the share name represents an identifier that can be mapped to an addon ID
- std::string addonId = url.GetHostName();
+ std::string addonId = url.GetShareName();
+ std::string filePath;
+ if (url.GetFileName().length() > addonId.length())
+ filePath = url.GetFileName().substr(addonId.size() + 1);
+
if (addonId.empty())
return false;
if (resource == NULL)
return false;
- std::string filePath = url.GetFileName();
if (!resource->IsAllowed(filePath))
return false;