fix: Whitelist .MD and .github extensions when checking empty repository (#29301)
## Description When user connects to Git, we check whether the repository is empty or not. We allow certain types of files e.g. #### PR fixes following issue(s) Fixes #11430
This commit is contained in:
parent
ac2230a541
commit
3daa0a04a5
|
|
@ -84,7 +84,7 @@ public class FileUtilsImpl implements FileInterface {
|
|||
private static final String VIEW_MODE_URL_TEMPLATE = "{{viewModeUrl}}";
|
||||
|
||||
private static final Pattern ALLOWED_FILE_EXTENSION_PATTERN =
|
||||
Pattern.compile("(.*?)\\.(md|git|gitignore|yml|yaml)$");
|
||||
Pattern.compile("(.*?)\\.(md|MD|git|gitignore|github|yml|yaml)$");
|
||||
|
||||
private final Scheduler scheduler = Schedulers.boundedElastic();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user