Skip to content
Snippets Groups Projects
Commit 25b8530e authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

compare file extension case insensitively, fixes #1827

Closes #1827

Merge request studip/studip!1204
parent 6b4bf88d
No related branches found
No related tags found
No related merge requests found
......@@ -60,6 +60,7 @@ class Admin_LoginStyleController extends AuthenticatedController
}
$extension = pathinfo($filename, PATHINFO_EXTENSION);
$extension = strtolower($extension);
if (!in_array($extension, ['gif', 'jpeg', 'jpg', 'png'])) {
continue;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment