You are here: Foswiki>Tasks Web>Item5742 (15 Mar 2011, GeorgeClark)Edit Attach

Item5742: File attachments with # (pound) not handled correctly

pencil
Priority: Normal
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Engine
Component: Rename, View, TopicAttachment
Branches:
Reported By: TWiki:Main.BenEsacove
Waiting For:
Last Change By: GeorgeClark
Attachments with # (pound) in the filename are not handled correctly by TWiki. URLs generated for managing these attachments put the pound symbol (#) into the URL, causing the browser to truncate the filename and treat the rest of the URL as an anchor. The pound should be URL-encoded as %23.

Example URLs: http://servername/twiki/bin/attach/Someweb/SomePage?filename=ih_bif#1.doc&revInfo=1
http://servername/twiki/bin/rename/Someweb/SomePage?template=moveattachment&attachment=ih_bif#1.doc
http://servername/twiki/bin/rename/Someweb/SomePage?web=Trash&template=renameattachmentdelete&attachment=ih_bif#1.doc


I believe that this is fixed in Trunk (Foswiki 1.1). The NameFilter configuration now excludes # from attachment names, and the topic is renamed to an acceptable name during the upload.

-- GeorgeClark - 21 Aug 2010

ItemTemplate edit

Summary File attachments with # (pound) not handled correctly
ReportedBy TWiki:Main.BenEsacove
Codebase
SVN Range
AppliesTo Engine
Component Rename, View, TopicAttachment
Priority Normal
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
Topic revision: r3 - 15 Mar 2011, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy