Changeset View
Changeset View
Standalone View
Standalone View
src/applications/celerity/CelerityResourceMapGenerator.php
Context not available. | |||||
$parser = new PhutilDocblockParser(); | $parser = new PhutilDocblockParser(); | ||||
$matches = array(); | $matches = array(); | ||||
$ok = preg_match('@/[*][*].*?[*]/@s', $data, $matches); | $ok = @preg_match('@/[*][*].*?[*]/@s', $data, $matches); | ||||
if (!$ok) { | if (!$ok) { | ||||
throw new Exception( | throw new Exception( | ||||
pht( | pht( | ||||
Context not available. | |||||
$hash = PhabricatorHash::digestHMACSHA256($data, 'celerity-resource-data'); | $hash = PhabricatorHash::digestHMACSHA256($data, 'celerity-resource-data'); | ||||
return substr($hash, 0, 8); | return @substr($hash, 0, 8); | ||||
} | } | ||||
} | } | ||||
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