1
0
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:
lian
2024-11-01 16:32:20 +08:00
13 changed files with 55 additions and 19 deletions

View File

@@ -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 };
};