Rename confusingly named blacklist feature in PrettyPageHandler to hideSuperglobalKey

This commit is contained in:
Denis Sokolov
2020-06-14 12:00:00 +03:00
parent 77222a3392
commit 5d5fe9bb3d
+14
View File
@@ -761,9 +761,11 @@ class PrettyPageHandler extends Handler
/**
* blacklist a sensitive value within one of the superglobal arrays.
* Alias for the hideSuperglobalKey method.
*
* @param string $superGlobalName The name of the superglobal array, e.g. '_GET'
* @param string $key The key within the superglobal
* @see hideSuperglobalKey
*
* @return void
*/
@@ -772,6 +774,18 @@ class PrettyPageHandler extends Handler
$this->blacklist[$superGlobalName][] = $key;
}
/**
* Hide a sensitive value within one of the superglobal arrays.
*
* @param string $superGlobalName The name of the superglobal array, e.g. '_GET'
* @param string $key The key within the superglobal
* @return void
*/
public function hideSuperglobalKey($superGlobalName, $key)
{
return $this->blacklist($superGlobalName, $key);
}
/**
* Checks all values within the given superGlobal array.
*