From ed36c8cbcd38de4c7df7c5b803a8c3a468fdf8e4 Mon Sep 17 00:00:00 2001 From: SergioFLS <34007063+SergioFLS@users.noreply.github.com> Date: Wed, 8 Feb 2023 15:50:21 -0300 Subject: [PATCH] [ItchioBridge] add error for password pages (#3252) --- bridges/ItchioBridge.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bridges/ItchioBridge.php b/bridges/ItchioBridge.php index e7892306..48295d9f 100644 --- a/bridges/ItchioBridge.php +++ b/bridges/ItchioBridge.php @@ -19,7 +19,10 @@ class ItchioBridge extends BridgeAbstract { $url = $this->getInput('url'); $html = getSimpleHTMLDOM($url); - + // if the page is password protected, abort + if ($html->find('.game_password_page', 0) !== null) { + returnClientError('The requested page is password protected.'); + } $title = $html->find('.game_title', 0)->innertext; $content = 'The following files are available to download:
';