N°4899 Adjust url sanitizer for 3.0 compliance

This commit is contained in:
Benjamin Dalsass
2022-05-18 10:49:23 +02:00
parent 87f606f768
commit 5574eabfed
2 changed files with 12 additions and 7 deletions

View File

@@ -97,6 +97,11 @@ class utils
* @since 3.0.0
*/
public const ENUM_SANITIZATION_FILTER_RAW_DATA = 'raw_data';
/**
* @var string
* @since 3.0.2, 3.1.0 N°4899
*/
public const ENUM_SANITIZATION_FILTER_URL = 'url';
/**
* @var string
@@ -455,7 +460,7 @@ class utils
break;
// For URL
case 'url':
case static::ENUM_SANITIZATION_FILTER_URL:
$retValue = filter_var($value, FILTER_SANITIZE_URL);
break;