Bug#1060060: libclipboard-perl: 'clipbrowse' from Debian package libclipboard-perl executing clipboard contents

Florian Schlichting fsfs at debian.org
Sat Jan 6 01:08:44 GMT 2024


On Sat, Jan 06, 2024 at 12:18:20AM +0100, gregor herrmann wrote:
> Just a short note: I had a very quick look this afternoon, and when I
> added the quotes, clipbrowse simply didn't work anymore (it opened a
> new firefox window (not a tab as without the quotes) with an empty
> address bar and an obviously empty page)). I didn't have the time for
> further investigation but my impression was that simply adding back
> the quotes was not enough.

I must admit I did not test this with firefox (only google-chrome), but
I have done some testing now with "export BROWSER=firefox" set.

In my testing both work fine when the clipboard contains just a proper URL.

Newlines seem to be ignored / removed, and the second line concatenated
to the first. This might be useful in case the MUA broke a long URL.

Firefox will display a new empty window when the clipboard contains a
blank, while chrome changes that blank to %20 and displays the resulting
URL in a new tab. Chrome on the other hand will display a new empty
window when the clipboard contains a pipe.

IMHO both failure modes are acceptable, as in those cases the clipboard
doesn't just contain a URL but some other garbage as well. Apparently
the "I'm feeling lucky" part mentioned in the clipbrowse manpage is no
longer implemented in Firefox. And there's clipjoin, which will remove
some whitespace and pipe characters...

Florian



More information about the pkg-perl-maintainers mailing list