• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Not a bug sys_get_temp_dir has no trailing slash

thedude

Well-known member
#1
XFMG 1.05a

In XenGallery_Model_File::saveImageResource, line 159

Code:
$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
#2
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.