mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-30 12:24:25 +02:00
Merge pull request #14009 from overleaf/bg-project-name-validation-clone-whitespace
trim whitespace from project name when cloning GitOrigin-RevId: cb3908a49ad15a9ad4f4e5d490932c4d97a84590
This commit is contained in:
@@ -50,6 +50,9 @@ async function duplicate(owner, originalProjectId, newProjectName) {
|
||||
])
|
||||
segmentation.duplicatedFromProject = originalProjectId
|
||||
|
||||
// remove any leading or trailing spaces
|
||||
newProjectName = newProjectName.trim()
|
||||
|
||||
// Now create the new project, cleaning it up on failure if necessary
|
||||
const newProject = await ProjectCreationHandler.promises.createBlankProject(
|
||||
owner._id,
|
||||
|
||||
Reference in New Issue
Block a user