Diffusion Kate 732f690534d8

Clear konsole command-line before directory change

Authored by michaelh on Jan 5 2018, 9:54 PM.

Description

Clear konsole command-line before directory change

Summary:
When changing tabs anything that exists in the command line gets
executed.
That can be very dangerous. Dolphin clears the command line. I
copied/pasted that code.

Test Plan:
Open 2 files residing in different directories in kate
Activate konsole plugin.
In konsole type 'ls /tmp' (not ENTER)
Change tab.

-> ls /tmp should not execute

Differential Revision: https://phabricator.kde.org/D9590

@aacid just seeing only now that this was pushed to the 17.12 branch. That means kate's Konsole Plugin ist completely broken and already shipped in distributions...

Well, you approved it and the commit log says "That can be very dangerous. " so yes i commited it to the stable branch so dangerous things would not happen.

Revert it and it will be fixed for the next release, no?

Also i can stop commiting approved but uncommited patches for kate if you want.

@aacid Sorry for the noise: the fix was already reverted in the 17.12 branch, so what I wrote was completely wrong - my mistake. And no - please continuing committing patches, this is certainly appreciated. It was not my intention to blame you. :-)