Skip to content

Commit b84aaf7

Browse files
authored
Merge pull request #48 from coldbox-modules/development
3.4.2
2 parents 5fb88d1 + 1dd0843 commit b84aaf7

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
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":"3.4.1",
3+
"version":"3.4.2",
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: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313

1414
### Fixed
1515

16+
- `cbsecurity_logs` is hard coded instead of using module setting
17+
18+
## [3.4.1] - 2023-08-09
19+
20+
### Fixed
21+
1622
- Parenthesis on `top` statements for MSSQL Server on the `DBLogger` thanks to @irvirv
1723

1824
## [3.4.0] - 2023-06-14

models/util/DBLogger.cfc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ component accessors="true" singleton threadsafe {
188188
"select
189189
#getLimitStart()#
190190
count( id ) as total, #arguments.column#
191-
from cbsecurity_logs
191+
from #getTable()#
192192
group by #arguments.column#
193193
order by count( id ) desc
194194
#getLimitEnd()#
@@ -207,8 +207,8 @@ component accessors="true" singleton threadsafe {
207207
struct function getActionsReport(){
208208
return queryExecute(
209209
"select
210-
count( id ) as total, action, ( count(id) / ( select count(id) from cbsecurity_logs ) ) * 100 as percentage
211-
from cbsecurity_logs
210+
count( id ) as total, action, ( count(id) / ( select count(id) from #getTable()# ) ) * 100 as percentage
211+
from #getTable()#
212212
group by action",
213213
{},
214214
{ datasource : variables.settings.firewall.logs.dsn }
@@ -230,7 +230,7 @@ component accessors="true" singleton threadsafe {
230230
*/
231231
struct function getBlockTypesReport(){
232232
return queryExecute(
233-
"select count( id ) as total, blockType from cbsecurity_logs group by blockType",
233+
"select count( id ) as total, blockType from #getTable()# group by blockType",
234234
{},
235235
{ datasource : variables.settings.firewall.logs.dsn }
236236
).reduce( ( results, row ) => {

0 commit comments

Comments
 (0)