aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasyl Gello <vasek.gello@gmail.com>2024-09-12 16:06:56 +0300
committerVasyl Gello <vasek.gello@gmail.com>2024-09-16 09:48:04 +0300
commit56aef0534ebc25fab53dcf95bf723dc181415254 (patch)
tree7bc6a9781b79aa9a9282bb9af777fa138d83a7ed
parent5fe0272dbd8bdf95c38e68274842011e05ad3167 (diff)
CURL: Treat file:// protocol as simple virtual protocol
Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
-rw-r--r--xbmc/URL.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/xbmc/URL.cpp b/xbmc/URL.cpp
index 3102a4d69f..8bc0f98c7f 100644
--- a/xbmc/URL.cpp
+++ b/xbmc/URL.cpp
@@ -131,13 +131,16 @@ void CURL::Parse(std::string strURL1)
// ones that come to mind are iso9660, cdda, musicdb, etc.
// they are all local protocols and have no server part, port number, special options, etc.
// this removes the need for special handling below.
+ // clang-format off
if (
IsProtocol("stack") ||
IsProtocol("virtualpath") ||
IsProtocol("multipath") ||
IsProtocol("special") ||
- IsProtocol("resource")
+ IsProtocol("resource") ||
+ IsProtocol("file")
)
+ // clang-format on
{
SetFileName(std::move(strURL).substr(iPos));
return;