Mercurial > hg > rc1
comparison plugins/filesystem_attachments/filesystem_attachments.php @ 30:7498e7cacd71
better error message
author | Charlie Root |
---|---|
date | Tue, 13 Mar 2018 12:59:17 -0400 |
parents | 1e000243b222 |
children |
comparison
equal
deleted
inserted
replaced
29:ea061c743982 | 30:7498e7cacd71 |
---|---|
212 if ($temp_dir !== $file_path) { | 212 if ($temp_dir !== $file_path) { |
213 rcube::raise_error(array( | 213 rcube::raise_error(array( |
214 'code' => 403, | 214 'code' => 403, |
215 'file' => __FILE__, | 215 'file' => __FILE__, |
216 'line' => __LINE__, | 216 'line' => __LINE__, |
217 'message' => sprintf("%s can't read %s (not in temp_dir)", | 217 'message' => sprintf("%s can't read %s (not in temp_dir: %s)", |
218 $rcmail->get_user_name(), substr($path, 0, 512)) | 218 $rcmail->get_user_name(), substr($path, 0, 512), $temp_dir) |
219 ), true, false); | 219 ), true, false); |
220 | 220 |
221 return false; | 221 return false; |
222 } | 222 } |
223 | 223 |