diff --git a/index.php b/index.php index 2ebd11c..1b36030 100644 --- a/index.php +++ b/index.php @@ -8,6 +8,16 @@ if(isset($imgurl)) { $a = parse_url($imgurl); + // Insecure checkup causes RFI + switch($a['scheme']) + { + case 'http': + case 'https': + break; + default: + exit; + } + switch($a['host']) { case 'www.yuncomics.com': @@ -183,4 +193,4 @@ startdata: } else echo $title.PHP_EOL.implode(PHP_EOL, $aab); - } \ No newline at end of file + }