Skip to content

Commit 7b0ac1c

Browse files
committed
Remove request id from the output of a exception
Closes #5999
1 parent fb76d0d commit 7b0ac1c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

wcfsetup/install/files/lib/core.functions.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,7 @@ function getMinorVersion(): string
9292
* @deprecated 6.0 Use #[\SensitiveParameter] instead.
9393
*/
9494
#[\Attribute(\Attribute::TARGET_PARAMETER)]
95-
class SensitiveArgument
96-
{
97-
}
95+
class SensitiveArgument {}
9896
}
9997

10098
namespace wcf\functions\exception {
@@ -257,8 +255,6 @@ function logThrowable(\Throwable $e, &$logFile = null): string
257255
function printThrowable(\Throwable $e)
258256
{
259257
$exceptionID = logThrowable($e, $logFile);
260-
if (\wcf\getRequestId()) $exceptionID .= '/' . \wcf\getRequestId();
261-
262258
$exceptionTitle = $exceptionSubtitle = $exceptionExplanation = '';
263259
$logFile = sanitizePath($logFile);
264260
try {

0 commit comments

Comments
 (0)