Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f3f00e3

Browse files
authored
Merge pull request #3438 from A13501350/v2/master
fix: add event message resources to ModSecurityIIS.dll and resolve "Invalid function" errors (#3408)
2 parents 18cae50 + 0238e2d commit f3f00e3

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

‎iis/Makefile.win

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ OBJS4 = libinjection_html5.obj \
8585
libinjection_sqli.obj \
8686
libinjection_xss.obj
8787

88+
OBJS5 = ModSecurityIISMessage.res
89+
8890
all: $(DLL)
8991

9092
dll: $(DLL)
@@ -101,12 +103,21 @@ $(OBJS2): ..\standalone\$*.c
101103
.cpp.obj:
102104
$(CC) $(CFLAGS) -c $< -Fo$@
103105

104-
$(DLL): $(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4)
105-
$(LINK) $(LDFLAGS) $(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4) $(LIBS)
106+
$(DLL): $(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4) $(OBJS5)
107+
$(LINK) $(LDFLAGS) $(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4) $(OBJS5) $(LIBS)
106108
IF EXIST $(DLL).manifest $(MT) -manifest $(DLL).manifest -outputresource:$(DLL);#1
107109

110+
$(OBJS5): ModSecurityIISMessage.rc
111+
rc /r ModSecurityIISMessage.rc
112+
113+
ModSecurityIISMessage.rc: ModSecurityIISMessage.mc
114+
mc -U ModSecurityIISMessage.mc
115+
108116
clean:
109117
del /f *.obj
110118
del /f *.dll
111119
del /f *.exp
112120
del /f *.lib
121+
del /f *.rc
122+
del /f *.bin
123+
del /f *.res

‎iis/ModSecurityIISMessage.mc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
MessageId=0x1
2+
Language=English
3+
%1
4+
.
5+

‎iis/installer.wxs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,9 @@
402402
Source="Release\amd64\zlib1.dll" />
403403
<File Id="_64_FUZZY" Name="fuzzy.dll"
404404
Source="Release\amd64\fuzzy.dll" />
405+
<util:EventSource Name="ModSecurity" Log="Application"
406+
EventMessageFile="[inetsrv64]ModSecurityIIS.dll"
407+
KeyPath="yes" />
405408
</Component> </DirectoryRef> <DirectoryRef
406409
Id="inetsrv32"> <Component Id="ModSec32" DiskId="1"
407410
Guid="514A81F0-2413-42EF-B19F-E2613125ECE7"
@@ -480,6 +483,9 @@
480483
Source="Release\x86\zlib1.dll" /> <File
481484
Id="_32_FUZZY" Name="fuzzy.dll"
482485
Source="Release\x86\fuzzy.dll" />
486+
<util:EventSource Name="ModSecurity" Log="Application"
487+
EventMessageFile="[inetsrv32]ModSecurityIIS.dll"
488+
KeyPath="yes" />
483489
</Component> </DirectoryRef> <DirectoryRef
484490
Id="SystemFolderConfigSchema32"> <Component
485491
Id="ConfigSchema32"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /