diff --git a/test/inc/get-raw-javascript.php b/test/inc/get-raw-javascript.php index e7dec32..11c295b 100755 --- a/test/inc/get-raw-javascript.php +++ b/test/inc/get-raw-javascript.php @@ -3,7 +3,10 @@ header('Content-Type: application/javascript'); $url = $_GET['file']; - +$urlParts = parse_url($url); +if ($urlParts['scheme'] === "file") { + exit; +} $ch = curl_init($url); curl_exec($ch); curl_close($ch);