mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-26 02:52:30 +01:00
finish fixing folder names when lots of slashes exist; closes #2377
This commit is contained in:
parent
fe849789a2
commit
4f21fa85f8
@ -24,7 +24,7 @@ const schema = object().shape({
|
||||
|
||||
const generateDirectoryData = (name: string): FileObject => ({
|
||||
key: `dir_${name.split('/', 1)[0] ?? name}`,
|
||||
name: name.split('/', 1)[0] ?? name,
|
||||
name: name.replace(/^(\/*)/, '').split('/', 1)[0] ?? name,
|
||||
mode: '0644',
|
||||
size: 0,
|
||||
isFile: false,
|
||||
|
Loading…
Reference in New Issue
Block a user