We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb5db7c commit 58689fcCopy full SHA for 58689fc
app/forms.py
@@ -178,3 +178,13 @@ def validate_custom_headers(self, field):
178
def validate_url(self, field):
179
if not (field.data.startswith('http://') or field.data.startswith('https://')):
180
raise ValidationError('URL must start with http:// or https://')
181
+
182
+ # Enhanced validation using webhook module
183
+ try:
184
+ from app.webhooks import validate_webhook_url
185
+ validation_result = validate_webhook_url(self.webhook_type.data, field.data)
186
+ if not validation_result['valid']:
187
+ raise ValidationError(validation_result['message'])
188
+ except ImportError:
189
+ # Fallback to basic validation if webhook module isn't available
190
+ pass
0 commit comments