mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
#4036 - Escape hyphen in regex for PHP 7.3 compatibility
This commit is contained in:
@@ -35,12 +35,12 @@ $mes = e107::getMessage();
|
||||
|
||||
if(isset($_GET['mode']))
|
||||
{
|
||||
$_GET['mode'] = preg_replace('/[^\w-]/', '', $_GET['mode']);
|
||||
$_GET['mode'] = preg_replace('/[^\w\-]/', '', $_GET['mode']);
|
||||
}
|
||||
|
||||
if(isset($_GET['type']))
|
||||
{
|
||||
$_GET['type'] = preg_replace('/[^\w-]/', '', $_GET['type']);
|
||||
$_GET['type'] = preg_replace('/[^\w\-]/', '', $_GET['type']);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user