From 321ed34e5391125b4cbe780f12df976db9e5824f Mon Sep 17 00:00:00 2001 From: Philipp Kerling Date: Sun, 30 Dec 2018 15:48:05 +0100 Subject: [util] Redact URL in CUtil::ExcludeFileOrFolder All URLs in debug output should be redacted. Use newer fmt features while we're at it. Fixes #15160. --- xbmc/Util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xbmc/Util.cpp b/xbmc/Util.cpp index 952cc76bd4..5ce3e67305 100644 --- a/xbmc/Util.cpp +++ b/xbmc/Util.cpp @@ -557,7 +557,7 @@ bool CUtil::ExcludeFileOrFolder(const std::string& strFileOrFolder, const std::v } if (regExExcludes.RegFind(strFileOrFolder) > -1) { - CLog::Log(LOGDEBUG, "%s: File '%s' excluded. (Matches exclude rule RegExp:'%s')", __FUNCTION__, strFileOrFolder.c_str(), regexp.c_str()); + CLog::LogF(LOGDEBUG, "File '{}' excluded. (Matches exclude rule RegExp: '{}')", CURL::GetRedacted(strFileOrFolder), regexp); return true; } } -- cgit v1.2.3