diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-02-01 21:18:10 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-02-01 21:18:10 -0500 |
commit | 75cbc8c4319c0e54c00532de54e612b0fe25062c (patch) | |
tree | 7521f3dbcf5f5c25b736837c156b5995bbbdaada | |
parent | d76b7e16f70b7f1337f0636516c687dc02d7b77b (diff) |
Always call match() for external link providers
-rw-r--r-- | app/Core/ExternalLink/ExternalLinkManager.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/Core/ExternalLink/ExternalLinkManager.php b/app/Core/ExternalLink/ExternalLinkManager.php index 59f36e54..1fa423c2 100644 --- a/app/Core/ExternalLink/ExternalLinkManager.php +++ b/app/Core/ExternalLink/ExternalLinkManager.php @@ -125,6 +125,10 @@ class ExternalLinkManager extends Base } else { $provider = $this->getProvider($this->userInputType); $provider->setUserTextInput($this->userInputText); + + if (! $provider->match()) { + throw new ExternalLinkProviderNotFound('Unable to parse URL with selected provider'); + } } if ($provider === null) { |