Skip to content

Commit e062fb0

Browse files
committed
FC-2968 bot IP detection should check an array not a list
1 parent 9592f2a commit e062fb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Application.cfc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050
<cfparam name="cookie.sessionScopeTested" default="false" />
5151
<cfparam name="cookie.hasSessionScope" default="false" />
52-
<cfif not len(cgi.http_user_agent) or (cookie.sessionScopeTested and not cookie.hasSessionScope) or reFindAny(this.botAgents,lcase(cgi.HTTP_USER_AGENT)) or listcontains(this.botIPs,cgi.remote_addr)>
52+
<cfif not len(cgi.http_user_agent) or (cookie.sessionScopeTested and not cookie.hasSessionScope) or reFindAny(this.botAgents,lcase(cgi.HTTP_USER_AGENT)) or arrayFind(this.botIPs,cgi.remote_addr)>
5353
<cfset THIS.sessiontimeout = createTimeSpan(0,0,0,2) />
5454
<cfset request.fc.hasSessionScope = false />
5555

0 commit comments

Comments
 (0)