Capitan Cloud 1 anno fa
parent
commit
38ecfbc548
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      Public/index.php

+ 2 - 2
Public/index.php

@@ -138,7 +138,7 @@ switch ($url) {
     }  
        
     if (filesize($picPath) <= APP_FILE_MAX_SIZE) { 
-      if ($fileExt = "jpg") {
+      if ($fileExt === "jpg") {
         header("Content-Type: image/jpeg");
       } else {
         header("Content-Type: image/" . $fileExt);
@@ -173,7 +173,7 @@ switch ($url) {
     $filePath = $JAR_PATH . DIRECTORY_SEPARATOR . $fileName;
        
     if (filesize($filePath) <= APP_FILE_MAX_SIZE) { 
-      if ($fileExt = "jpg") {
+      if ($fileExt === "jpg") {
         header("Content-Type: image/jpeg");
       } else {
         header("Content-Type: image/" . $fileExt);