Fix the include family of "functions" in stack trace sanitization
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 17 Dec 2021 09:31:27 +0000 (10:31 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 17 Dec 2021 09:33:17 +0000 (10:33 +0100)
commit34ee24ef8dfa582733a5a5a6cf6d960cf57af9b3
tree2e227d2da93734e76e89f71e37a72d892cab11f6
parent6577941aa36ccd871f3015bdb84501c4d443fe40
Fix the include family of "functions" in stack trace sanitization

`include` et al are not actual functions, but language constructs. For this
reason they cannot be reflected, causing their arguments to show as
`[error_during_sanitization]`. Fix this by special casing them to not run the
sanitization, they do not contain sensitive arguments (apart from the path
which is redacted independently later).
wcfsetup/install/files/lib/core.functions.php