From ece16d99833be03f44951e3982235308caadd739 Mon Sep 17 00:00:00 2001 From: Alwin Esch Date: Sat, 7 Mar 2020 14:01:44 +0100 Subject: [PATCH] [addons] fix stupid circumstance with addon settings on folder with file extension Found this when adding settings to vfs.rar. There called this place with "special: //profile/addon_data/vfs.rar", this was seen by "CFileDirectoryFactory::Create" as a file and tried to open with vfs.rar addon. This logically leads to an error because it is only a folder. The slash is left now on the folder so that it is recognized as a folder. --- xbmc/addons/Addon.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/xbmc/addons/Addon.cpp b/xbmc/addons/Addon.cpp index bcdefe3649562..dd553fa252e8d 100644 --- a/xbmc/addons/Addon.cpp +++ b/xbmc/addons/Addon.cpp @@ -161,9 +161,7 @@ void CAddon::SaveSettings(void) // break down the path into directories std::string strAddon = URIUtils::GetDirectory(m_userSettingsPath); - URIUtils::RemoveSlashAtEnd(strAddon); std::string strRoot = URIUtils::GetDirectory(strAddon); - URIUtils::RemoveSlashAtEnd(strRoot); // create the individual folders if (!CDirectory::Exists(strRoot))