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

--- Comment #12 from Akseli Lahtinen <akse...@akselmo.dev> ---
Git commit 26292d7d97d64c029424c5cf610053f2d8eb2e74 by Akseli Lahtinen.
Committed on 14/03/2025 at 16:47.
Pushed by akselmo into branch 'master'.

KNewFileMenu: Forbid saving file or folder with ~USERNAME as name

When creating new file or directory, check that any name which starts
with ~ does not resolve into a home directory on the machine.

This is due to an UNIX convention where "~user" can resolve into
"/home/user".

On Windows we do not have to worry about resolving this file.

Added an autotest for this as well.

M  +81   -18   autotests/knewfilemenutest.cpp
M  +21   -5    src/filewidgets/knewfilemenu.cpp

https://invent.kde.org/frameworks/kio/-/commit/26292d7d97d64c029424c5cf610053f2d8eb2e74

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

Reply via email to