Przeglądaj źródła

fix showfile type

causefx 8 lat temu
rodzic
commit
c2f74705dc
1 zmienionych plików z 1 dodań i 1 usunięć
  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);
 	}