! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
exo-open fails to open files with ' or " in path
Status:
CLOSED: FIXED

Comments

Description Peter de Ridder editbugs 2007-01-22 19:46:07 CET
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.9) Gecko/20061219 Iceape/1.0.7 (Debian-1.0.7-2)
Build Identifier: 

useing exo-open (or exo_show_url) to open a file with ' or "
the dialog will pop-up saying the file failed to open
opening the file directly with the default application is no problem


Reproducible: Always

Steps to Reproduce:
1. make file like: this\'is\"afile
2. exo-open this\'is\"afile

Actual Results:  
dialog pops-up saying unable to open "/home/cavalier/this'is"afile"
Comment 1 Peter de Ridder editbugs 2007-01-28 13:15:38 CET
Created attachment 970 
patch for libexo svn trunk

With this patch, the local_path, which is passes to other applications, is first quoted useing g_shell_quote, instead of just surrounded by "".
Comment 2 Benedikt Meurer editbugs 2007-01-28 13:30:55 CET
Committed with revision 24777.

2007-01-28      Benedikt Meurer <benny@xfce.org>

        * exo/exo-url.c(exo_url_show_on_screen): Apply patch from Peter de
          Ridder <pc.ridder@zonnet.nl> to quote URLs properly prior to
          passing them to external programs. Bug #2791.

Bug #2791

Reported by:
Peter de Ridder
Reported on: 2007-01-22
Last modified on: 2009-10-09

People

Assignee:
Nick Schermer
CC List:
0 users

Version

Version:
unspecified

Attachments

patch for libexo svn trunk (3.34 KB, patch)
2007-01-28 13:15 CET , Peter de Ridder
no flags

Additional information