Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F847912
D371.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, Apr 19, 7:46 PM
Size
623 B
Mime Type
text/x-diff
Expires
Sun, Apr 20, 7:46 PM (1 h, 1 m)
Engine
blob
Format
Raw Data
Handle
602692
Attached To
D371: INP-1772 Don't use "/tmp" folder, when resizing uploaded images
D371.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