You are here: Foswiki>Tasks Web>Item15191 (06 Aug 2023, MichaelDaum)Edit Attach

Item15191: an uploaded html file is secured by appending txt multiple times

pencil
Priority: Normal
Current State: Closed
Released In: 2.1.8
Target Release: patch
Applies To: Engine
Component:
Branches: Release02x01 master
Reported By: MichaelG
Waiting For:
Last Change By: MichaelDaum
Hello, when file attachment of .html file is attached .txt. Now when I edit the properties of the attachment. A new attachment with html.txt.txt is created in wiki.

screenshot.png

foswiki version: 2.1.7
Webserver: Apache

-- MichaelG - 04 May 2023

Confirmed. This is a problem of the regex in {UploadFilter}.

-- MichaelDaum - 04 May 2023
 

ItemTemplate edit

Summary an uploaded html file is secured by appending txt multiple times
ReportedBy MichaelG
Codebase
SVN Range
AppliesTo Engine
Component
Priority Normal
CurrentState Closed
WaitingFor
Checkins distro:ef334dd5ecd2 distro:e5e5f4f3b609
TargetRelease patch
ReleasedIn 2.1.8
CheckinsOnBranches Release02x01 master
trunkCheckins
masterCheckins distro:e5e5f4f3b609
ItemBranchCheckins
Release02x01Checkins distro:ef334dd5ecd2
Release02x00Checkins
Release01x01Checkins
I Attachment Action Size Date Who Comment
screenshot.pngpng screenshot.png manage 6 K 04 May 2023 - 14:14 MichaelG  
Topic revision: r4 - 06 Aug 2023, MichaelDaum
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