1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-18 06:11:33 +02:00

general: Fix PHP 7.3 deprecation warnings (#982)

Fix PHP 7.3 deprecation warnings. FILTER_VALIDATE_URL implies FILTER_FLAG_SCHEME_REQUIRED and FILTER_FLAG_HOST_REQUIRED since PHP 5.2.1

https://bugs.php.net/bug.php?id=75442
This commit is contained in:
triatic
2018-12-28 15:13:03 +00:00
committed by LogMANOriginal
parent 988635dcf3
commit 81ee15a161
4 changed files with 5 additions and 10 deletions

View File

@@ -75,8 +75,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_VALIDATE_URL, FILTER_FLAG_PATH_REQUIRED);
if($this->threadurl === false) {
returnClientError('The URL you provided is invalid!');