File tree Expand file tree Collapse file tree 2 files changed +21
-7
lines changed Expand file tree Collapse file tree 2 files changed +21
-7
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
----
9
9
10
+ ## [ 3.4.1] => 2022-JUL-12
11
+
12
+ ### Fixed
13
+
14
+ * If the debugger is disabled or not in debug mode, the panels and visualizers are still being rendered and exploding. This should be a 404.
15
+
16
+ ----
17
+
10
18
## [ 3.4.0] => 2022-JUN-27
11
19
12
20
### Added
Original file line number Diff line number Diff line change @@ -21,16 +21,22 @@ component extends="coldbox.system.RestHandler" {
21
21
}
22
22
23
23
// If not enabled, just 404 it
24
- if ( ! variables .debuggerService .getDebugMode () ) {
25
- event .renderData (
26
- statusCode = 404 ,
27
- statusText = " Not Found" ,
28
- type = " text" ,
29
- data = " Page Not Found"
30
- );
24
+ if ( ! variables .debuggerService .getDebugMode () || ! variables .debuggerConfig .enabled ) {
25
+ event .overrideEvent ( " cbdebugger:main.disabled" );
31
26
}
32
27
}
33
28
29
+ /**
30
+ * Debugger disabled event
31
+ */
32
+ function disabled ( event , rc , prc ){
33
+ event .renderData (
34
+ statusCode = 404 ,
35
+ statusText = " Not Found" ,
36
+ type = " text" ,
37
+ data = " Page Not Found"
38
+ );
39
+ }
34
40
35
41
/**
36
42
* Visualize the request tracker
You can’t perform that action at this time.
0 commit comments