Improve attachment file handling: use one new function to create a temp
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 7 Jan 2007 17:30:13 +0000 (17:30 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 7 Jan 2007 17:30:13 +0000 (17:30 +0000)
commit628bce99c404e37bbebc40555b591ed101400671
tree6c7911259ee4c5bcfd40fa025d3538435bdb6976
parent8ec806b85655f4b3933c65f1877df68cec3c0cdf
Improve attachment file handling: use one new function to create a temp
file for storing the attachment. This replaces the same code in five
places. It also improves on the code, it's now much more safe against
overwriting existing attachments by chance.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12097 7612ce4b-ef26-0410-bec9-ea0150e637f0
ChangeLog
functions/compose.php
functions/mailbox_display.php
plugins/spamcop/functions.php
plugins/spamcop/spamcop.php
src/compose.php
src/read_body.php
src/right_main.php
src/search.php