1. 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

Discussion in 'Media Gallery Resolved Bugs' started by thedude, May 25, 2015.

  1. thedude

    thedude 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
  2. Chris D

    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.

Share This Page