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
Mail Attachment Bug
POP3 Attachments are saved with the wrong filename in DB
Category Unknown
Affected Version 1.6.0 rc1
Priority Unknown
Status Not a Bug
Fixed Version (none)
Submitted 02-03-2008
Assigned Users (none) Tags (none)

issueid=57 02-03-2008 09:23 PM
Junior Member
Mail Attachment Bug
POP3 Attachments are saved with the wrong filename in DB

Hi there

Found this problem that saved attachment filename in DB, different to filename that had actuallyben assigned. This probablyapplies to POP3/IMAP only. [This applies to version 1.3.1 that I installed last week using fantastico on HostMonster ]

Automail.php Line 348
Code:
mysql_query("INSERT INTO ticket_attachments (ticket, ref, filename, type) VALUES ($ticket_id, $iid, '$ticket_id" . "_$filename', 'q')");
I fixed it like this:
Automail.php Line 348
Code:
	    mysql_query("INSERT INTO ticket_attachments (ticket, ref, filename, type) VALUES ($ticket_id, $iid, '$rand" . "_$filename', 'q')");
Thanks for the cool App.

Justin
Reply

02-04-2008 01:19 AM
Developer
 
osTicket v1.3.1 is discontinued. The current release is a complete rewrite.
Reply

Issue Tools
Subscribe to this issue

All times are GMT -4. The time now is 04:22 PM.