https://bugs.kde.org/show_bug.cgi?id=393496

--- Comment #6 from Jonathan Marten <j...@keelhaul.me.uk> ---
Git commit b4a737f8167e21bf16b1e57ca180d9e4992c91d3 by Jonathan Marten.
Committed on 18/12/2020 at 11:59.
Pushed by marten into branch 'master'.

Do not assert if KIO::rawErrorDetail() is given a URL with no scheme

If the 'reqUrl' points to a URL that is not null but has no scheme,
e.g. QUrl("foo"), then QUrl takes it as as a valid relative URL.
However, the blank scheme is passed to KProtocolInfo::protocolClass()
which asserts.

This can be triggered by, e.g. "konqueror --part webenginepart foo"
where the "foo" generates a relative URL.

Check that the scheme is not empty before calling protocolClass().

M  +6    -1    src/core/job_error.cpp

https://invent.kde.org/frameworks/kio/commit/b4a737f8167e21bf16b1e57ca180d9e4992c91d3

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to