Update PrettyPageHandler.php

This commit is contained in:
Markus Staab
2017-03-07 09:37:35 +01:00
committed by GitHub
parent 7bb5d5b542
commit d928d9bc72
+4 -2
View File
@@ -134,7 +134,7 @@ class PrettyPageHandler extends Handler
return $a;
}
}
https://github.com/filp/whoops/pull/486
// Remove all internals
return [];
}]);
@@ -655,9 +655,11 @@ class PrettyPageHandler extends Handler
}
/**
* Checks all values identified by the given superGlobalName within GLOBALS.
* Checks all values within the given superGlobal array.
* Blacklisted values will be replaced by a equal length string cointaining only '*' characters.
*
* We intentionally dont rely on $GLOBALS as it depends on 'auto_globals_jit' php.ini setting.
*
* @param $superGlobal array One of the superglobal arrays
* @param $superGlobalName string the name of the superglobal array, e.g. '_GET'
* @return array $values without sensitive data