Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1046673
D190.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Jun 29, 2:28 AM
Size
503 B
Mime Type
text/x-diff
Expires
Mon, Jun 30, 2:28 AM (10 h, 28 m)
Engine
blob
Format
Raw Data
Handle
676683
Attached To
D190: INP-1528 - When attaching file to e-mail verify, that it's a file, not a directory
D190.diff
View Options
Index: branches/5.2.x/core/kernel/processors/main_processor.php
===================================================================
--- branches/5.2.x/core/kernel/processors/main_processor.php
+++ branches/5.2.x/core/kernel/processors/main_processor.php
@@ -1157,7 +1157,7 @@
$esender = $this->Application->recallObject($pseudo);
/* @var $esender kEmailSendingHelper */
- if ( file_exists($path) ) {
+ if ( file_exists($path) && is_file($path) ) {
$esender->AddAttachment($path);
}
}
Event Timeline
Log In to Comment