JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 15.01.2021, 12:44
SMS SMS is offline
DSL User
 
Join Date: Jun 2019
Posts: 38
Default Filename is cut off if it contains certain strings

**External links are only visible to Support Staff****External links are only visible to Support Staff** 'B, C.jpg is grabbed as A 'B, C.jpg
**External links are only visible to Support Staff****External links are only visible to Support Staff** 'B', C.jpg is grabbed as A 'B
i.e. ', C.jpg is cut off from the filename.

Related: https://board.jdownloader.org/showpo...5&postcount=40
Reply With Quote
  #2  
Old 15.01.2021, 12:45
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 69,577
Default

I have answered here https://board.jdownloader.org/showpo...9&postcount=41
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 15.01.2021, 15:31
SMS SMS is offline
DSL User
 
Join Date: Jun 2019
Posts: 38
Default

The problem is that it's inconsistent, and thus unexpected.

Most links work even if they are not URL-encoded, even if they contain apostrophes, commas, and spaces.

Unexpectedly, these characters in the specific order `', ` don't work. This was difficult to notice and track down.

Why support some links with apostrophes, commas, and spaces, but not all?

Why is the order `', ` problematic, but other arrangements of these characters are okay?

Last edited by SMS; 15.01.2021 at 15:36.
Reply With Quote
  #4  
Old 15.01.2021, 16:04
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 69,577
Default

You should always urlencode stuff that you place into an URL
__________________
JD-Dev & Server-Admin
Reply With Quote
  #5  
Old 15.01.2021, 16:06
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 69,577
Default

Quote:
Originally Posted by SMS View Post
Why is the order `', ` problematic, but other arrangements of these characters are okay?
Because ' and " are used as seperator( href="url") in html source and the html parser stops at that character because of that (more complex but simple explained). Spaces should be encoded as well but because of single link per line, it parses the whole line.

You should always properly urlencode your values to avoid any issues and be able to use special characters
__________________
JD-Dev & Server-Admin
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 09:53.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.