mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
* DiscImageChef.Server/Default.aspx.cs:
* DiscImageChef.Server/Controllers/UploadStatsController.cs: * DiscImageChef.Server/ViewReport.aspx.cs: Show requested information before adapted for filesystem.
This commit is contained in:
@@ -34,10 +34,6 @@ namespace DiscImageChef.Server
|
||||
if(revision != null)
|
||||
revision = Encoding.ASCII.GetString(Encoding.Convert(Encoding.UTF8, Encoding.ASCII, Encoding.UTF8.GetBytes(revision))).Replace('/', '_').Replace('\\', '_').Replace('?', '_');
|
||||
|
||||
lblManufacturer.Text = manufacturer;
|
||||
lblModel.Text = model;
|
||||
lblRevision.Text = revision;
|
||||
|
||||
string xmlFile = null;
|
||||
if(!string.IsNullOrWhiteSpace(manufacturer) && !string.IsNullOrWhiteSpace(model) && !string.IsNullOrWhiteSpace(revision))
|
||||
xmlFile = manufacturer + "_" + model + "_" + revision + ".xml";
|
||||
@@ -54,6 +50,10 @@ namespace DiscImageChef.Server
|
||||
return;
|
||||
}
|
||||
|
||||
lblManufacturer.Text = Request.QueryString["manufacturer"];
|
||||
lblModel.Text = Request.QueryString["model"];
|
||||
lblRevision.Text = Request.QueryString["revision"];
|
||||
|
||||
DeviceReport report = new DeviceReport();
|
||||
XmlSerializer xs = new XmlSerializer(report.GetType());
|
||||
StreamReader sr = new StreamReader(Path.Combine(System.Web.Hosting.HostingEnvironment.MapPath("~"), "Reports", xmlFile));
|
||||
|
||||
Reference in New Issue
Block a user