summaryrefslogtreecommitdiff
path: root/app/Core/ExternalLink/ExternalLinkManager.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-02-01 21:18:10 -0500
committerFrederic Guillot <fred@kanboard.net>2016-02-01 21:18:10 -0500
commit75cbc8c4319c0e54c00532de54e612b0fe25062c (patch)
tree7521f3dbcf5f5c25b736837c156b5995bbbdaada /app/Core/ExternalLink/ExternalLinkManager.php
parentd76b7e16f70b7f1337f0636516c687dc02d7b77b (diff)
Always call match() for external link providers
Diffstat (limited to 'app/Core/ExternalLink/ExternalLinkManager.php')
-rw-r--r--app/Core/ExternalLink/ExternalLinkManager.php4
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) {