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

Méven Car <meve...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REPORTED                    |CONFIRMED
     Ever confirmed|0                           |1
                 CC|                            |meve...@gmail.com

--- Comment #2 from Méven Car <meve...@gmail.com> ---
> Fortunately, it was just after I took the backup.

Glad the impact was minimal.

> This is my guess, the cause is the below lines:
> https://invent.kde.org/utilities/kate/-/blob/master/apps/lib/katestashmanager.cpp?ref_type=heads#L27
> "sessionName" is not escaped here, so probably it tries to delete absolute 
> path if "sessionName" contains "/".

This is correct analysis.

QDir::exists doc states:
``
Unless name contains an absolute file path, the file name is assumed to be
relative to the directory itself, so this function is typically used to check
for the presence of files within a directory.
```

`KateStashManager::stashDocuments` is also concerned.
You could see `Document 1` files in your session path for stashed files.

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

Reply via email to