Skip to content

Commit d48f075

Browse files
committed
Merge branch 'development'
2 parents 409ab1b + 955a1ca commit d48f075

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

box.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name":"ColdBox Security",
3-
"version":"2.11.0",
3+
"version":"2.12.0",
44
"location":"https://downloads.ortussolutions.com/ortussolutions/coldbox-modules/cbsecurity/@build.version@/[email protected]@.zip",
55
"author":"Ortus Solutions.com <[email protected]>",
66
"slug":"cbsecurity",

changelog.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
----
99

10+
## [2.11.1] => 2021-MAR-10
11+
12+
### Fixed
13+
14+
* Fix `getRealIP()` to only return originating user's source IP, if the forwarded ip is a list
15+
16+
----
17+
1018
## [2.11.0] => 2021-MAR-10
1119

1220
### Added

interceptors/Security.cfc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ component accessors="true" extends="coldbox.system.Interceptor" {
737737
return headers[ "X-Forwarded-For" ];
738738
}
739739

740-
return len( CGI.REMOTE_ADDR ) ? CGI.REMOTE_ADDR : "127.0.0.1";
740+
return len( CGI.REMOTE_ADDR ) ? trim( listFirst( CGI.REMOTE_ADDR ) ) : "127.0.0.1";
741741
}
742742

743743
/**

0 commit comments

Comments
 (0)