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

            Bug ID: 462918
           Summary: [wayland] Text copied that contains <?php cannot be
                    pasted
    Classification: Applications
           Product: kate
           Version: Git
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: o...@geek.co.il
  Target Milestone: ---

SUMMARY
When copying to the clipboard text that contains the string "<?php", the copied
text cannot be pasted anywhere - not even in Kate itself.

STEPS TO REPRODUCE
1.  Start Kate and put in some text, and make sure the text "<?php" appears
somewhere
2.  Select a bunch of text, make sure it includes "<?php" (it doesn't have to
be at the beginning).
3. Go to somewhere else in the document and try to paste the text.

OBSERVED RESULT
Nothing happens

EXPECTED RESULT
The copied text should be pasted

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 5.26.80
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7

ADDITIONAL INFORMATION
The copied text cannot be pasted in anything else that I could find: I tried
Firefox, konsole, visual studio code and gedit.

The problem appears to be that when Kate copies text that contains the string
"<?php" it marks its content-type as "application/php" *only* - there's no
"text/plain" content type option. As a result, no editor - and that includes
Kate itself - will recognized the current clipboard content, and using the
"paste" command does nothing.

The copied text can be seen by Klipper (at least the system tray widget - the
mouse position menu behaves a bit weird), but after selecting something else in
Klipper and selecting the offending text again - it cannot be pasted either:
klipper dutifully replaces the problematic content type.

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

Reply via email to