You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicfunctionvalidateFragment($fragment = null)
{
if ($fragment === null)
{
$fragment = $this->_fragment;
}
// If fragment is empty, it is considered to be validif (strlen($fragment) === 0)
{
returntrue;
}
// Determine whether the fragment is well-formed$pattern = '/^' . $this->_regex['uric'] . '*$/';
$status = @preg_match($pattern, $fragment);
if ($status === false)
{
thrownewCException('Internal error: fragment validation failed');
}
return (boolean) $status;
}
The text was updated successfully, but these errors were encountered:
dmitry-kulikov
changed the title
Segmentation Fault due PHP bug in preg_match
Segmentation Fault due to PHP bug in preg_match
Nov 6, 2014
EUriHttp
preg_match
in this function can crash PHP execution if URI is too long.Possible solution:
ZF-10151: Improved notification in Http.php validateQuery() over preg_match crash caused by PHP backtracking bug
Probably same issue can appear:
EUriHttp
The text was updated successfully, but these errors were encountered: