Not a bug sys_get_temp_dir has no trailing slash


Well-known member
XFMG 1.05a

In XenGallery_Model_File::saveImageResource, line 159

$tmpFileName = sys_get_temp_dir() . "$dataId-" . uniqid() . '.data';
sys_get_temp_dir doesn't return the trailing '/' so it probably should be included right before $dataId

However I noticed saveImageResource is never actually called from stock XFMG, so maybe it's being built for future use.

Just a heads up

Chris D

XenForo developer
Staff member
It's the opposite. It's actually some very old code or experimental code I left in.

That will get removed at some point, but not a bug, for now.

Thanks though.