Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1046529
D371.id.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
Sat, Jun 28, 7:45 PM
Size
623 B
Mime Type
text/x-diff
Expires
Sun, Jun 29, 7:45 PM (2 h, 29 m)
Engine
blob
Format
Raw Data
Handle
676555
Attached To
D371: INP-1772 Don't use "/tmp" folder, when resizing uploaded images
D371.id.diff
View Options
Index: branches/5.2.x/core/units/helpers/upload_helper.php
===================================================================
--- branches/5.2.x/core/units/helpers/upload_helper.php
+++ branches/5.2.x/core/units/helpers/upload_helper.php
@@ -122,7 +122,7 @@
$image_helper = $this->Application->recallObject('ImageHelper');
// Add extension, so that "ImageHelper::ResizeImage" can work.
- $resize_file_path = tempnam(sys_get_temp_dir(), 'uploaded_') . '.jpg';
+ $resize_file_path = tempnam(WRITEABLE . '/tmp', 'uploaded_') . '.jpg';
if ( rename($file_path, $resize_file_path) === false ) {
return false;
Event Timeline
Log In to Comment