19 declare(strict_types=1);
47 foreach ($key_value_pairs as $key => &$value) {
48 if (is_array($value)) {
52 if ($key ===
'password' && is_string($value)) {
53 $value =
'REMOVED FOR SECURITY';
56 if ($key ===
'PHPSESSID' && is_string($value)) {
57 $value = substr($value, 0, 5) .
' (SHORTENED FOR SECURITY)';
60 if ($key ===
'HTTP_COOKIE') {
61 $cookie_content = explode(
';', $value);
62 foreach ($cookie_content as &$cookie_pair_string) {
63 $cookie_pair = explode(
'=', $cookie_pair_string);
64 if (trim($cookie_pair[0]) === session_name()) {
65 $cookie_pair[1] = substr($cookie_pair[1], 0, 5) .
' (SHORTENED FOR SECURITY)';
66 $cookie_pair_string = implode(
'=', $cookie_pair);
69 $value = implode(
';', $cookie_content);
73 return $key_value_pairs;
85 if (defined(
"IL_INITIAL_WD")) {
99 $this->current_handler = $this->error_handling->getHandler();
100 $this->current_handler->setRun($this->getRun());
101 $this->current_handler->setException($this->getException());
102 $this->current_handler->setInspector($this->getInspector());
103 return $this->current_handler->handle();
112 if ($this->current_handler ===
null ||
113 !method_exists($this->current_handler,
'contentType')) {
117 return $this->current_handler->contentType();
contentType()
This is an implicit interface method of the Whoops handlers.
handle()
Last missing method from HandlerInterface.
HandlerInterface $current_handler
A Whoops error handler that delegates calls on it self to another handler that is created only in the...
__construct(ilErrorHandling $error_handling)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
ilErrorHandling $error_handling
hideSensitiveData(array $key_value_pairs)