From 7fd6eabbde8dcd4a4ed7968072fddec72246fcd3 Mon Sep 17 00:00:00 2001 From: Harold Kim Date: Sat, 9 Dec 2017 13:50:33 +0000 Subject: [PATCH] =?UTF-8?q?=EB=B3=B4=EC=95=88=20=EC=B7=A8=EC=95=BD?= =?UTF-8?q?=EC=A0=90=20=EC=88=98=EC=A0=95..?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit RFI bugfix --- index.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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 + }