N°4517 - PHP 8.1: Replace deprecated FILTER_SANITIZE_STRING constant with FILTER_SANITIZE_SPECIAL_CHARS

This commit is contained in:
Molkobain
2022-08-03 10:37:44 +02:00
parent ef81bdb1e1
commit b718d40eb9

View File

@@ -89,13 +89,13 @@ class RequestManipulatorHelper
*
* @param string $sKey
* @param mixed $default
* @param int $iFilter Default is FILTER_SANITIZE_STRING
* @param int $iFilter Default is FILTER_SANITIZE_SPECIAL_CHARS
*
* @return mixed|null
*
* @since 2.5.1
*/
public function ReadParam($sKey, $default = null, $iFilter = FILTER_SANITIZE_STRING)
public function ReadParam($sKey, $default = null, $iFilter = FILTER_SANITIZE_SPECIAL_CHARS)
{
if ($this->GetCurrentRequest()->query->has($sKey))
{