Skip to content

Commit 9821ae3

Browse files
committed
Filter out the extra information when debug mode is disabled
1 parent ce166fd commit 9821ae3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

wcfsetup/install/files/lib/system/exception/AJAXException.class.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@ public function __construct(
106106
unset($returnValues['line']);
107107
}
108108

109+
// Strip the extra information unless the stacktrace should be included.
110+
if (!$includeStacktrace) {
111+
$extraInformation = [];
112+
}
113+
109114
$responseData = [
110115
'code' => $errorType,
111116
'file' => $file,

0 commit comments

Comments
 (0)