! 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 !
Ignore # in file path
Status:
RESOLVED: FIXED

Comments

Description sergius-dart 2017-05-11 14:14:57 CEST
Constant G_URI_RESERVED_CHARS_ALLOWED_IN_PATH in
https://github.com/xfce-mirror/exo/blob/master/exo-open/main.c#L207
filtered all characters after # in path. Example :
exo-open "/home/foo/bar#foo.doc"
not opened and message 
file:///home/foo/bar not found. 


May be In function exo_open_get_path need replace contsant G_URI_RESERVED_CHARS_ALLOWED_IN_PATH to G_URI_RESERVED_CHARS_GENERIC_DELIMITERS.

*sorry. I used translate.google.com
Comment 1 Sean Davis editbugs 2019-01-11 03:30:14 CET
I am unable to reproduce this with exo 0.12.2. Can you please try this again with a recent release?
Comment 2 sergius-dart 2019-01-12 04:47:06 CET
Requirements : 
echo Hello good > /tmp/evil.deb#1.txt
echo Hello bad> /tmp/evil.deb\\
echo Hello bad> /tmp/evil.deb

Version 0.12.0 : all good

Version 0.11.0 partial reproduce :
strace ./exo-open/exo-open "/tmp/evil.deb#1.txt" 2>&1 | grep evil - see in strace lstat("/tmp/evil.deb\\#source.txt", 0x7ffe08f13e30) = -1 ENOENT (No such file or directory)

Version : 0.9.0/0.10.0 reproduce ->
strace ./exo-open/exo-open "/tmp/evil.deb#1.txt" 2>&1 | grep evil   -> see in strace lstat("/tmp/evil.deb\\", {st_mode=S_IFREG|0644, st_size=10, ...}) = 0

Version 0.8.0 : not builded

Version 0.7.0/0.6.0  :
strace ./exo-open/exo-open "/tmp/evil.deb#1.txt" 2>&1 | grep evil - see in strace lstat("/tmp/evil.deb", {st_mode=S_IFREG|0644, st_size=12, ...}) = 0

Bug #13568

Reported by:
sergius-dart
Reported on: 2017-05-11
Last modified on: 2019-01-12

People

Assignee:
Nick Schermer
CC List:
2 users

Version

Version:
0.10.2

Attachments

Additional information