Fixed bug#10522 - HTTP 500 error when uploading attachments to ticket on Windows.
Merge remote-tracking branch 'upstream/rel-3_2' into rel-3_2