[XenForoBridge] Fix broken checks

This commit is contained in:
logmanoriginal 2018-11-05 12:05:14 +01:00
parent 65da157fff
commit 9c1c0f2974

View file

@ -76,9 +76,7 @@ class XenForoBridge extends BridgeAbstract {
$this->threadurl = filter_var(
$this->getInput('url'),
FILTER_VALIDATE_URL,
FILTER_FLAG_SCHEME_REQUIRED |
FILTER_FLAG_HOST_REQUIRED |
FILTER_FLAG_PATH_REQUIRED);
FILTER_FLAG_SCHEME_REQUIRED | FILTER_FLAG_HOST_REQUIRED | FILTER_FLAG_PATH_REQUIRED);
if($this->threadurl === false) {
returnClientError('The URL you provided is invalid!');