quote filename on dnd

Bug #54602 reported by Thomas Folz-Donahue
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNOME Terminal
Fix Released
Low
Nominated for Main by katie kalafatis
gnome-terminal (Ubuntu)
Fix Released
Undecided
Ubuntu Desktop Bugs

Bug Description

Binary package hint: gnome-terminal

In gnome-terminal, for anyone who does not already use this feature,
when a user drags something into a terminal window, the URI is copied
into the terminal. Local filenames are even converted from full
"file://" URIs to simple path names. This is a really cool feature.

However, many filenames in the wild have evil characters such as
!#&*()[]{}"'`<>,; and whitespace. If, for example, you were to
download a .torrent from mininova.org, and then type 'azureus ' into
the terminal and try to drag and drop the filename, bash would
complain about the characters in that filename.

The solution is to escape those characters before inserting the
filename.

I wrote a patch for this, which has been accepted into the upstream cvs-head. However, this patch can just as easily be applied to the current ubuntu package, while simply packaging the modified upstream would require a library change. The relevant upstream bug is #85926.

Changed in gnome-terminal:
status: Unknown → Fix Released
Revision history for this message
Daniel Holbach (dholbach) wrote :

Thanks for your bug report. I mark it Fix Committed, as it will land in Ubuntu Edgy with the next release. Thanks a lot.

Changed in gnome-terminal:
assignee: nobody → desktop-bugs
status: Unconfirmed → Fix Committed
Revision history for this message
Daniel Holbach (dholbach) wrote :

 gnome-terminal (2.15.4-0ubuntu1) edgy; urgency=low
 .
   * New upstream release:
     - Fix Bug "does not assert dependency on gdk 2.10"
     - Fix Bug "dnd'd filenames should be escaped" (Malone: #54602)
   * debian/control.in:
     - bumped Build-Depends.

Changed in gnome-terminal:
status: Fix Committed → Fix Released
Changed in gnome-terminal:
importance: Unknown → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.