Changeset 2686
- Timestamp:
- 5/25/2012 1:00:04 AM (12 months ago)
- File:
-
- 1 edited
-
trunk/website/scripts/blackbox/upload.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/website/scripts/blackbox/upload.php
r2096 r2686 136 136 137 137 //Move the temporary file to out dumps folder for later inspection 138 if (!move_uploaded_file($crashReport['tmp_name'], 'dumps/' . $reportId . '.tbz')) 138 $localName = $crashReport['name']; 139 $lastDot = strrpos($localName, '.'); 140 if ($lastDot !== false) 141 $localExt = substr($localName, strrpos($localName, '.') + 1); 142 else 143 $localExt = 'bz2'; 144 if (!move_uploaded_file($crashReport['tmp_name'], 'dumps/' . $reportId . '.tar.' . $localExt)) 139 145 throw new Exception('Could not store crash dump onto server.'); 140 146 }
Note: See TracChangeset
for help on using the changeset viewer.
