Changeset 2695


Ignore:
Timestamp:
5/25/2012 3:36:28 AM (3 years ago)
Author:
lowjoel
Message:

Return the report ID to the client so the client can check for solutions in future.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/website/scripts/blackbox/upload.php

    r2694 r2695  
    234234    if (!move_uploaded_file($crashReport['tmp_name'], sprintf('dumps/%u-%u.tar.%s', $reportId, $dumpId, $localExt))) 
    235235        throw new Exception('Could not store crash dump onto server.'); 
     236 
     237    //Give the client the Report ID so he can check whether the report has since been fixed. 
     238    header('Content-Type: application/xml'); 
     239    printf('<?xml version="1.0"?> 
     240<crashReport id="%d" />', $reportId); 
    236241} 
    237242 
Note: See TracChangeset for help on using the changeset viewer.