changeset 30:7498e7cacd71

better error message
author Charlie Root
date Tue, 13 Mar 2018 12:59:17 -0400
parents ea061c743982
children b2d0a9781472
files plugins/filesystem_attachments/filesystem_attachments.php
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/filesystem_attachments/filesystem_attachments.php	Sun Jan 28 13:44:10 2018 -0500
+++ b/plugins/filesystem_attachments/filesystem_attachments.php	Tue Mar 13 12:59:17 2018 -0400
@@ -214,8 +214,8 @@
                     'code'    => 403,
                     'file'    => __FILE__,
                     'line'    => __LINE__,
-                    'message' => sprintf("%s can't read %s (not in temp_dir)",
-                        $rcmail->get_user_name(), substr($path, 0, 512))
+                    'message' => sprintf("%s can't read %s (not in temp_dir: %s)",
+					 $rcmail->get_user_name(), substr($path, 0, 512), $temp_dir)
                 ), true, false);
 
             return false;