Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Uploading Files with html spcial charachters fails
Uploading Files with html spcial charachters fails [message #1830041] Thu, 16 July 2020 06:45 Go to next message
Linuxhippy Mising name is currently offline Linuxhippy Mising nameFriend
Messages: 72
Registered: July 2009
Member
Hi,

When uploading files with html special characters in the filename, rap aborts because the Label in UploadPanel has the MARKUP_ENABLED property set but the filename is simply set and not html escaped.

I could submit a patch, but I wonder which way to go:
- HTML-escape the filename: simple (but is there already a html escaping funtion / library in rap's code / dependencies - otherwise it would most likely introduce a new dependency)
- Separate filename+error-message into two different labels.

Best regards, Clemens

[Updated on: Mon, 20 July 2020 07:22]

Report message to a moderator

Re: Uploading Files with html spcial charachters fails [message #1830417 is a reply to message #1830041] Sat, 25 July 2020 16:12 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2429
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,

RAP has internal class org.eclipse.rap.rwt.internal.util.Entities to deal with HTML escaping. Not sure if this class will be useful for you.

Regards,
Ivan
Previous Topic:RAP deployment
Next Topic:Mouse move events for TreeViewer
Goto Forum:
  


Current Time: Mon Dec 09 17:02:58 GMT 2024

Powered by FUDForum. Page generated in 0.02821 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top