repository->name; $url = $decoded->repository->html_url; $hash = $decoded->after; preg_match("/^[_\-A-Za-z0-9]{1,30}$/", $name, $matches); if (!$matches) { error_log('GITEA HOOK: FAILED - name verification'); exit(); } preg_match("/^[_\-A-Za-z0-9:\/\.]{1,150}$/", $url, $matches); if (!$matches) { error_log('GITEA HOOK: FAILED - url verification'); exit(); } preg_match("/^[A-Za-z0-9]{1,50}$/", $hash, $matches); if (!$matches) { error_log('GITEA HOOK: FAILED - hash verification'); exit(); } file_put_contents($micobu_pipe, "$micobu_key $name $url $hash\n"); ?>