Answer the question
In order to leave comments, you need to log in
What does the Ereg() function do?
I got a staaary site on Bitrix. The component that displays (forms) the news has a line
if(strlen($arParams["FILTER_NAME"])<=0 || !ereg("^[A-Za-z_][A-Za-z01-9_]*$", $arParams["FILTER_NAME"]))
{
$arrFilter = array();
}
if(strlen($arParams["FILTER_NAME"])<=0 || !preg_match("^[A-Za-z_][A-Za-z01-9_]*$", $arParams["FILTER_NAME"]))
{
$arrFilter = array();
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question