Avoid E_STRICT errors
[squirrelmail.git] / functions / compose.php
index f64e49dfef244c813b00d57dffd6f8deaba7f8a7..ae86552ee63ecc2c8a8a35c2f097efddc9adc0d6 100644 (file)
@@ -18,7 +18,7 @@
  * This function makes sure it doesn't overwrite other attachments,
  * preventing collisions and race conditions.
  *
- * @return filename
+ * @return filename of the tempfile only (not full path)
  * @since 1.5.2
  */
 function sq_get_attach_tempfile()
@@ -49,7 +49,7 @@ function sq_get_attach_tempfile()
             // success! make sure it's not readable, close and return filename
             chmod($full_localfilename, 0600);
             fclose($fp);
-            return $full_localfilename;
+            return $localfilename;
         }
     }