mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-23 12:27:48 +00:00
Merge branch '11.0'
This commit is contained in:
@@ -1913,5 +1913,10 @@ export const validateName = (newName) => {
|
||||
errMessage = gettext('Name cannot contain backslash');
|
||||
return { isValid, errMessage };
|
||||
}
|
||||
if (newName === '..') {
|
||||
isValid = false;
|
||||
errMessage = gettext('Name cannot be double dots');
|
||||
return { isValid, errMessage };
|
||||
}
|
||||
return { isValid, errMessage };
|
||||
};
|
||||
|
Reference in New Issue
Block a user