Skip to content

Commit

Permalink
fix: add URL validation for external task links
Browse files Browse the repository at this point in the history
  • Loading branch information
fguillot committed Oct 26, 2024
1 parent 905d133 commit d083418
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Validator/ExternalLinkValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ private function commonValidationRules()
return array(
new Validators\Required('url', t('Field required')),
new Validators\MaxLength('url', t('The maximum length is %d characters', 65535), 65535),
new Validators\URL('url', t('This URL is invalid')),
new Validators\Required('title', t('Field required')),
new Validators\MaxLength('title', t('The maximum length is %d characters', 65535), 65535),
new Validators\Required('link_type', t('Field required')),
Expand Down

0 comments on commit d083418

Please sign in to comment.