Gnus development mailing list
 help / color / mirror / Atom feed
From: "Bjørn Mork" <bmork@dod.no>
Subject: Opening attachments with embedded spaces in a browser
Date: Wed, 16 Nov 2005 14:40:39 +0100	[thread overview]
Message-ID: <873blwk8x4.fsf@obelix.mork.no> (raw)

I just found a nasty side effect of an Opera bug: "\" is automatically
turned to "/" without any questions.

This means that Opera is unable to open filenames with emabedded
spaces when used as a viewer for Gnus.  I've added a mailcap entry
like this:

 (mailcap-add "image/jpeg" "opera -remote 'openURL(file://%s)'" t)

This will make Gnus call

 opera -remote 'openURL(file:///tmp/emm.4564CaM/<filename>)'

when viewing the file.  However, if <filename> contains spaces, this
call may look like

 opera -remote 'openURL(file:///tmp/emm.4564CaM/file\ name)'

which Opera, due to the bug in "\" handling, will interpret as

 opera -remote 'openURL(file:///tmp/emm.4564CaM/file/name)'

This can be abused to make Opera open other files than the attachment
when called from Gnus, e.g by embedding a mix of ".." and " " in the
filename.  

The bug has been reported to Opera.  Dunno if it's necessary to do
anything in Gnus, since this is obviously an Opera bug and Opera usage
is by no way a Gnus default.  Just wanted you all to know.

Note that there may be other browsers affected by this, too.


Bjørn
-- 
I've never heard anything as ridiculous as the idea that the Cubans
are tapping your phone.




                 reply	other threads:[~2005-11-16 13:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=873blwk8x4.fsf@obelix.mork.no \
    --to=bmork@dod.no \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).