D11859: Copy&paste exploits

Martin Tobias Holmedahl Sandsmark noreply at phabricator.kde.org
Thu Apr 5 12:49:38 UTC 2018


sandsmark added a comment.


  this was the patch I was about to upload before I saw this, I think this makes more sense:
  
    diff --git src/TerminalDisplay.cpp src/TerminalDisplay.cpp
    index 0caa3997..98ba493a 100644
    --- src/TerminalDisplay.cpp
    +++ src/TerminalDisplay.cpp
    @@ -3187,6 +3187,7 @@ void TerminalDisplay::doPaste(QString text, bool appendReturn)
    if (!text.isEmpty()) {
    text.replace(QLatin1Char('\n'), QLatin1Char('\r'));
    if (bracketedPasteMode()) {
    +            text.remove(QLatin1String("\033"));
    text.prepend(QLatin1String("\033[200~"));
    text.append(QLatin1String("\033[201~"));
    }

REPOSITORY
  R319 Konsole

REVISION DETAIL
  https://phabricator.kde.org/D11859

To: michalhumpula, #konsole
Cc: sandsmark, mglb, hindenburg, herrold, ngraham
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/konsole-devel/attachments/20180405/387024cb/attachment.html>


More information about the konsole-devel mailing list