Skip to content

Commit e1a730c

Browse files
committed
Merge branch 'hotfix/dnn92'
2 parents 6d50248 + b8564bf commit e1a730c

20 files changed

+15
-32
lines changed

OpenForm.csproj

-4
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,6 @@
8181
<SpecificVersion>False</SpecificVersion>
8282
<HintPath>..\..\bin\OpenContent.dll</HintPath>
8383
</Reference>
84-
<Reference Include="SharpZipLib, Version=0.81.0.1407, Culture=neutral">
85-
<SpecificVersion>False</SpecificVersion>
86-
<HintPath>..\..\bin\SharpZipLib.dll</HintPath>
87-
</Reference>
8884
<Reference Include="System" />
8985
<Reference Include="System.Data" />
9086
<Reference Include="System.ComponentModel.DataAnnotations" />

OpenForm.dnn

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<dotnetnuke type="Package" version="5.0">
22
<packages>
3-
<package name="OpenForm" type="Module" version="03.03.00">
3+
<package name="OpenForm" type="Module" version="03.03.01">
44
<friendlyName>OpenForm</friendlyName>
55
<description>OpenForm module. Requires OpenContent v3.2.x</description>
66
<iconFile>~/Images/icon_extensions.png</iconFile>

ShareTemplate.ascx.cs

+11-27
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
using DotNetNuke.Services.FileSystem;
1818
using DotNetNuke.Entities.Host;
1919
using DotNetNuke.Common.Utilities;
20-
using ICSharpCode.SharpZipLib.Zip;
20+
//using ICSharpCode.SharpZipLib.Zip;
2121
using System.Web;
2222
using Satrabel.OpenContent.Components.Rss;
2323
using System.Net;
@@ -142,7 +142,9 @@ protected void cmdImport_Click(object sender, EventArgs e)
142142
{
143143
folder = FolderManager.Instance.AddFolder(PortalId, FolderName);
144144
}
145-
FileSystemUtils.UnzipResources(new ZipInputStream(fuFile.FileContent), folder.PhysicalPath);
145+
//FileSystemUtils.UnzipResources(new ZipInputStream(fuFile.FileContent), folder.PhysicalPath);
146+
var zip = new ZipUtils();
147+
zip.UnzipFiles(fuFile.FileContent, folder.PhysicalPath);
146148
}
147149
}
148150
catch (PermissionsNotMetException)
@@ -218,7 +220,9 @@ protected void cmdImportWeb_Click(object sender, EventArgs e)
218220
var req = (HttpWebRequest)WebRequest.Create(FileName);
219221
Stream stream = req.GetResponse().GetResponseStream();
220222

221-
FileSystemUtils.UnzipResources(new ZipInputStream(stream), folder.PhysicalPath);
223+
//FileSystemUtils.UnzipResources(new ZipInputStream(stream), folder.PhysicalPath);
224+
var zip = new ZipUtils();
225+
zip.UnzipFiles(stream, folder.PhysicalPath);
222226
}
223227
}
224228
catch (PermissionsNotMetException)
@@ -261,31 +265,11 @@ private void CreateZipFile(string zipFileName, string Folder)
261265
try
262266
{
263267
//Log.AddInfo(string.Format(Util.WRITER_CreateArchive, ZipFileShortName));
264-
strmZipFile = File.Create(zipFileName);
265-
ZipOutputStream strmZipStream = null;
266-
try
267-
{
268-
strmZipStream = new ZipOutputStream(strmZipFile);
269-
strmZipStream.SetLevel(CompressionLevel);
268+
269+
var zip = new ZipUtils();
270+
zip.ZipFiles(CompressionLevel, strmZipFile, Directory.GetFiles(Folder));
270271

271-
foreach (var item in Directory.GetFiles(Folder))
272-
{
273-
FileSystemUtils.AddToZip(ref strmZipStream, Path.GetFullPath(item), Path.GetFileName(item), "");
274-
}
275-
}
276-
catch (Exception ex)
277-
{
278-
DotNetNuke.Services.Exceptions.Exceptions.LogException(ex);
279-
//Log.AddFailure(string.Format(Util.WRITER_SaveFileError, ex));
280-
}
281-
finally
282-
{
283-
if (strmZipStream != null)
284-
{
285-
strmZipStream.Finish();
286-
strmZipStream.Close();
287-
}
288-
}
272+
289273
//Log.EndJob(Util.WRITER_CreatedPackage);
290274
WriteFileToHttpContext(zipFileName, ContentDisposition.Attachment);
291275
}

build-local92.cmd

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"%programfiles(x86)%\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\MSBuild.exe" OpenForm92.csproj /p:Configuration=Release,Platform=AnyCPU,SolutionDir=Solution,ReferencePath="ref\dnn920" /t:Rebuild >build-local-dnn920.log
2+
3+
pause

ref/OpenContent.dll

5.5 KB
Binary file not shown.

ref/dnn920/ClientDependency.Core.dll

152 KB
Binary file not shown.
16 KB
Binary file not shown.

ref/dnn920/DotNetNuke.Web.Client.dll

40 KB
Binary file not shown.

ref/dnn920/DotNetNuke.Web.Razor.dll

12.5 KB
Binary file not shown.

ref/dnn920/DotNetNuke.Web.dll

397 KB
Binary file not shown.

ref/dnn920/DotNetNuke.WebUtility.dll

482 KB
Binary file not shown.

ref/dnn920/DotNetNuke.dll

2.58 MB
Binary file not shown.
196 KB
Binary file not shown.

ref/dnn920/Newtonsoft.Json.dll

639 KB
Binary file not shown.

ref/dnn920/OpenContent.dll

436 KB
Binary file not shown.
181 KB
Binary file not shown.

ref/dnn920/System.Web.Helpers.dll

137 KB
Binary file not shown.
80.2 KB
Binary file not shown.

ref/dnn920/System.Web.Http.dll

460 KB
Binary file not shown.

ref/dnn920/System.Web.WebPages.dll

207 KB
Binary file not shown.

0 commit comments

Comments
 (0)