MIME base64 decoding very limited in file name length
Moderators: Hacker, petermad, Stefan2, white
MIME base64 decoding very limited in file name length
TC7.50RC2
example file name:
"123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890.1.2.jpg"
encoding works fine / file even carries the correct name in it but decoding
truncates filename:
"1234567890123456789012345678901234567890123456789012345678901234567890123456789"
(79 chars + '\0'?!)
UUE and XXE encoding/decoding work without a problem
regards
example file name:
"123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890.1.2.jpg"
encoding works fine / file even carries the correct name in it but decoding
truncates filename:
"1234567890123456789012345678901234567890123456789012345678901234567890123456789"
(79 chars + '\0'?!)
UUE and XXE encoding/decoding work without a problem
regards
- ghisler(Author)
- Site Admin
- Posts: 50421
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I have checked my code - MIME variables are indeed limited to 79 characters at this time in the decoder. Sorry, I don't know why there is this limit, I will have to investigate.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- fenix_productions
- Power Member
- Posts: 1979
- Joined: 2005-08-07, 13:23 UTC
- Location: Poland
- Contact:
AFAIR Quoted-Printable encoding used in MIME requires no more than seventy-something characters per line.ghisler(Author) wrote:I have checked my code - MIME variables are indeed limited to 79 characters at this time in the decoder. Sorry, I don't know why there is this limit, I will have to investigate.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...
#128099
#128099
that refers to the encoded data.fenix_productions wrote:AFAIR Quoted-Printable encoding used in MIME requires no more than seventy-something characters per line.
the "Content-Type" header field does not have such a limitation as far as i understood.
http://tools.ietf.org/html/rfc2045#section-5
regards
- ghisler(Author)
- Site Admin
- Posts: 50421
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I have increased the size now for the next version.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50421
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact: