Skip to content

Commit

Permalink
remove lowercasing file name in file upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Belikhun committed Nov 10, 2019
1 parent 2cf5b72 commit 4458efc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/contest/upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
$userid = $_SESSION["id"];
apache_setenv("no-gzip", "1");

$file = utf8_encode(strtolower($_FILES["file"]["name"]));
$file = utf8_encode($_FILES["file"]["name"]);
$filename = pathinfo($file, PATHINFO_FILENAME);
$extension = pathinfo($file, PATHINFO_EXTENSION);

Expand Down

0 comments on commit 4458efc

Please sign in to comment.