Ticket #4221: #4221.diff
File #4221.diff, 811 bytes (added by , 6 years ago) |
---|
-
slack-trac-hook.php
85 85 send_mentions_payload( $payload ); 86 86 } 87 87 88 /** 89 * @param $payload 90 * @return false|string 91 */ 88 92 function send_mentions_payload( $payload ) { 89 93 $payload = json_encode( $payload ); 90 94 $secret = MENTIONS_API_KEY; … … 101 105 return file_get_contents( MENTIONS_API_HANDLER, false, $context ); 102 106 } 103 107 108 /** 109 * @param $payload 110 */ 104 111 function maybe_add_ticket_cc_to_payload( &$payload ) { 105 112 if ( $payload['trac'] === 'security' && file_exists( __DIR__ . '/security-trac-cc.sh' ) ) { 106 113 $cc = trim( shell_exec( escapeshellcmd( __DIR__ . '/security-trac-cc.sh ' . escapeshellarg( (int) $payload['ticket_id'] ) ) ) );