Changeset View
Changeset View
Standalone View
Standalone View
src/aphront/site/AphrontRoutingMap.php
Context not available. | |||||
} | } | ||||
$data = null; | $data = null; | ||||
$ok = preg_match($pattern, $path, $data); | $ok = @preg_match($pattern, $path, $data); | ||||
if ($ok === false) { | if ($ok === false) { | ||||
throw new Exception( | throw new Exception( | ||||
pht( | pht( | ||||
Context not available. | |||||
); | ); | ||||
} | } | ||||
$sub_path = substr($path, strlen($path_match)); | $sub_path = @substr($path, @strlen($path_match)); | ||||
foreach ($value as $sub_route => $sub_value) { | foreach ($value as $sub_route => $sub_value) { | ||||
$result = $this->tryRoute($sub_route, $sub_value, $sub_path); | $result = $this->tryRoute($sub_route, $sub_value, $sub_path); | ||||
if ($result) { | if ($result) { | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0