File tree Expand file tree Collapse file tree
AppBox/Common/ServiceIntegrations Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,6 +14,13 @@ + (void)sendMessage:(IPAUploadInfo *)ipaUploadInfo
1414 webhook : (NSString *)webhook
1515 message : (NSString *)message
1616 completion : (void (^) (BOOL success))completion {
17+ // Validate webhook URL
18+ if (![Common isValidWebhookURL: webhook]) {
19+ DDLogError (@" MS Teams Error - Invalid webhook URL: %@ " , webhook);
20+ completion (NO );
21+ return ;
22+ }
23+
1724 // set slack message
1825 NSString *finalMessage;
1926 if (message.length > 0 ) {
Original file line number Diff line number Diff line change @@ -14,6 +14,13 @@ + (void)sendMessage:(IPAUploadInfo *)ipaUploadInfo
1414 webhook : (NSString *)webhook
1515 message : (NSString *)message
1616 completion : (void (^) (BOOL success))completion {
17+ // Validate webhook URL
18+ if (![Common isValidWebhookURL: webhook]) {
19+ DDLogError (@" Slack Error - Invalid webhook URL: %@ " , webhook);
20+ completion (NO );
21+ return ;
22+ }
23+
1724 // set slack channel url and image
1825 NSString *slackImage = abSlackImage;
1926
You can’t perform that action at this time.
0 commit comments