Always call match() for external link providers
This commit is contained in:
@@ -125,6 +125,10 @@ class ExternalLinkManager extends Base
|
|||||||
} else {
|
} else {
|
||||||
$provider = $this->getProvider($this->userInputType);
|
$provider = $this->getProvider($this->userInputType);
|
||||||
$provider->setUserTextInput($this->userInputText);
|
$provider->setUserTextInput($this->userInputText);
|
||||||
|
|
||||||
|
if (! $provider->match()) {
|
||||||
|
throw new ExternalLinkProviderNotFound('Unable to parse URL with selected provider');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($provider === null) {
|
if ($provider === null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user