mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Fixed files overwriting in installer; added OWASP CRS.
This commit is contained in:
@@ -4132,6 +4132,8 @@ ZRESULT TUnzip::Unzip(int index,void *dst,unsigned int len,DWORD flags)
|
||||
TCHAR dstfull[MAX_PATH];
|
||||
_tcscpy(dstfull, rootdir);
|
||||
_tcscat(dstfull, (const TCHAR *)dst);
|
||||
SetFileAttributes( dstfull, GetFileAttributes(dstfull) & ~FILE_ATTRIBUTE_READONLY);
|
||||
::DeleteFile(dstfull);
|
||||
h = ::CreateFile(dstfull, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS,
|
||||
ze.attr, NULL);
|
||||
}
|
||||
|
Reference in New Issue
Block a user