mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 04:59:21 +03:00
Changed: use hash_hmac() instead of MailSo\Base\Utils::Hmac()
Renamed: PrepearFetchSequence() to PrepareFetchSequence() Removed: StripSlashesValue() because PHP7 has no magic_quotes_gpc
This commit is contained in:
parent
23e9964997
commit
9bb44e7f98
7 changed files with 19 additions and 128 deletions
|
|
@ -59,14 +59,14 @@ class Http
|
|||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function GetQuery(string $sKey, $mDefault = null, bool $bClearPercZeroZero = true)
|
||||
public function GetQuery(string $sKey, $mDefault = null)
|
||||
{
|
||||
return isset($_GET[$sKey]) ? \MailSo\Base\Utils::StripSlashesValue($_GET[$sKey], $bClearPercZeroZero) : $mDefault;
|
||||
return isset($_GET[$sKey]) ? $_GET[$sKey] : $mDefault;
|
||||
}
|
||||
|
||||
public function GetQueryAsArray() : ?array
|
||||
{
|
||||
return isset($_GET) && \is_array($_GET) ? \MailSo\Base\Utils::StripSlashesValue($_GET, true) : null;
|
||||
return isset($_GET) && \is_array($_GET) ? $_GET : null;
|
||||
}
|
||||
|
||||
public function HasPost(string $sKey) : bool
|
||||
|
|
@ -79,14 +79,14 @@ class Http
|
|||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function GetPost(string $sKey, $mDefault = null, bool $bClearPercZeroZero = false)
|
||||
public function GetPost(string $sKey, $mDefault = null)
|
||||
{
|
||||
return isset($_POST[$sKey]) ? \MailSo\Base\Utils::StripSlashesValue($_POST[$sKey], $bClearPercZeroZero) : $mDefault;
|
||||
return isset($_POST[$sKey]) ? $_POST[$sKey] : $mDefault;
|
||||
}
|
||||
|
||||
public function GetPostAsArray() : ?array
|
||||
{
|
||||
return isset($_POST) && \is_array($_POST) ? \MailSo\Base\Utils::StripSlashesValue($_POST, false) : null;
|
||||
return isset($_POST) && \is_array($_POST) ? $_POST : null;
|
||||
}
|
||||
|
||||
public function HasRequest(string $sKey) : bool
|
||||
|
|
@ -101,7 +101,7 @@ class Http
|
|||
*/
|
||||
public function GetRequest(string $sKey, $mDefault = null)
|
||||
{
|
||||
return isset($_REQUEST[$sKey]) ? \MailSo\Base\Utils::StripSlashesValue($_REQUEST[$sKey]) : $mDefault;
|
||||
return isset($_REQUEST[$sKey]) ? $_REQUEST[$sKey] : $mDefault;
|
||||
}
|
||||
|
||||
public function HasServer(string $sKey) : bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue