From cb8a6243900b5b05cc45e9e91dd98f4f916606be Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Sun, 25 Jun 2023 17:47:18 +0300 Subject: [PATCH] kdecore: fix recursion due to kCheckLocalFile() Signed-off-by: Ivailo Monev --- kdecore/io/kurl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kdecore/io/kurl.cpp b/kdecore/io/kurl.cpp index c5a6485d..437a8e19 100644 --- a/kdecore/io/kurl.cpp +++ b/kdecore/io/kurl.cpp @@ -37,7 +37,7 @@ static const char s_kurlLocalFileDelimiter = 'l'; // FIXME: using local files to pass around queries and fragments is totally bonkers, this will make // sure they are not a thing -#define KURL_COMPAT_CHECK +// #define KURL_COMPAT_CHECK #ifdef KURL_COMPAT_CHECK static const int kurlDebugArea = 181; // see kdebug.areas @@ -45,7 +45,7 @@ void kCheckLocalFile(const KUrl *kurl) { if (kurl->isLocalFile() && kurl->queryPairDelimiter() == s_kurlLocalFileDelimiter) { if (kurl->hasQuery() || kurl->hasFragment()) { - kFatal(kurlDebugArea) << "Query or fragment detected in" << kurl->url(); + kFatal(kurlDebugArea) << "Query or fragment detected in" << kurl->prettyUrl(); } } }