mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-03-22 13:10:41 +08:00
address Scrutinizer issues with the use of getParams method
This commit is contained in:
parent
1baa1c2b0a
commit
12a9b2ff8e
|
@ -161,10 +161,10 @@ class Request
|
||||||
public function getData()
|
public function getData()
|
||||||
{
|
{
|
||||||
$data = array(
|
$data = array(
|
||||||
'adata' => $this->getParam('adata', array()),
|
'adata' => $this->getParam('adata'),
|
||||||
);
|
);
|
||||||
$required_keys = array('v', 'ct');
|
$required_keys = array('v', 'ct');
|
||||||
$meta = $this->getParam('meta', array());
|
$meta = $this->getParam('meta');
|
||||||
if (empty($meta)) {
|
if (empty($meta)) {
|
||||||
$required_keys[] = 'pasteid';
|
$required_keys[] = 'pasteid';
|
||||||
$required_keys[] = 'parentid';
|
$required_keys[] = 'parentid';
|
||||||
|
@ -184,8 +184,8 @@ class Request
|
||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @param string $param
|
* @param string $param
|
||||||
* @param string|array $default
|
* @param string $default
|
||||||
* @return string|array
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function getParam($param, $default = '')
|
public function getParam($param, $default = '')
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user