Ask not what osTicket community can do for you - ask what you can do for osTicket community

Go Back   osTicket Forums > Project Tools > osTicket Bug Tracker > Bug

Issue Type Bug   Project osTicket Bug Tracker
attachements with non ascii filename unsupported
Category Unknown
Affected Version 1.6.0 rc2
Priority 3
Status Confirmed
Fixed Version (none)
Submitted 01-29-2008
Assigned Users peter Tags (none)

issueid=32 01-29-2008 04:40 AM
Junior Member
attachements with non ascii filename unsupported

when sending a mail to open a new ticket through pipe.php (upload/api), attachements are handled and added to the ticket.

but if the attachement contains non asci characters in filename (and sent using thunderbird), the filename option of content-type becomes filename* and is not handled properly by osticket.

RFC 2231, section 4, refers to this particular encoding.

osticket should handle non ascii charsets, particularly when dealing with emails as we cannot know in advance which particular configuration the client will use.

I don't have a patch ready this time, but an example of such a problem encountered by another open source project can be found here :
http://trac.roundcube.net/ticket/1484321

extract of an email received :
Code:
--------------000400060203030906020602
Content-Type: application/pdf;
 name="=?ISO-8859-1?Q?num=E9rique=2Epdf?="
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename*=ISO-8859-1''%6E%75%6D%E9%72%69%71%75%65%2E%70%64%66
thus in pipe.php, $filename=$part->d_parameters['filename']; is unset. $part->d_parameters['filename*']; should be used instead in this case.

probably something like
PHP Code:
$filename=$part->d_parameters['filename'] ? $part->d_parameters['filename'] : decode_function($part->d_parameters['filename*']); 
decode_function should also handle the case of empty $part->d_parameters['filename*'] (malformed email)
Reply

03-12-2008 12:08 PM
Issue Changed by peter
  • Status changed from Unconfirmed to Confirmed
  • User assignments modified
  • Priority changed from Unknown to 3

Issue Tools
Subscribe to this issue

All times are GMT -4. The time now is 09:52 AM.