Explorar o código

fix showfile type

causefx %!s(int64=8) %!d(string=hai) anos
pai
achega
c2f74705dc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      functions.php

+ 1 - 1
functions.php

@@ -4253,7 +4253,7 @@ function getExtension($string) {
 function showFile(){
 	$file = $_GET['file'];
 	$fileType = getExtension($file);
-	if($fileType != 'php'){
+	if($fileType == 'css' || $fileType == 'js'){
 		header("Content-type: ".mimeTypes()[$fileType]);
 		@readfile($file);
 	}