Skip to content

Commit

Permalink
Update index.php
Browse files Browse the repository at this point in the history
  • Loading branch information
par7133 authored Oct 18, 2024
1 parent 4b940b9 commit 4436f18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
}

if (filesize($picPath) <= APP_FILE_MAX_SIZE) {
if ($fileExt = "jpg") {
if ($fileExt === "jpg") {
header("Content-Type: image/jpeg");
} else {
header("Content-Type: image/" . $fileExt);
Expand Down Expand Up @@ -168,7 +168,7 @@
$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);
Expand Down

0 comments on commit 4436f18

Please sign in to comment.