C2018-019 don’t allow for two “.pdf” extensions on a temporary file name.
This commit is contained in:
@@ -1663,7 +1663,9 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
//return MyApp.CreatePDF(@"C:\Temp\" + fileName + ".pdf", openPdf);
|
//return MyApp.CreatePDF(@"C:\Temp\" + fileName + ".pdf", openPdf);
|
||||||
//return MyApp.CreatePDF(VlnSettings.TemporaryFolder + "\\" + fileName + ".pdf", openPdf);
|
//return MyApp.CreatePDF(VlnSettings.TemporaryFolder + "\\" + fileName + ".pdf", openPdf);
|
||||||
return MyApp.CreatePDF(fileName + ".pdf", openPdf, DebugStatus);
|
if (!fileName.ToUpper().EndsWith(".PDF")) // C2018-019 only allow one .pdf extension
|
||||||
|
fileName += ".pdf";
|
||||||
|
return MyApp.CreatePDF(fileName, openPdf, DebugStatus);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user