mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
comment out broken length check
This commit is contained in:
parent
cba4a391a9
commit
14ef9a2c49
1 changed files with 3 additions and 3 deletions
|
@ -648,9 +648,9 @@ module.exports = ProjectEntityHandler =
|
|||
|
||||
|
||||
checkValidElementName: (folder, name, callback = (err) ->) ->
|
||||
# check if the path would be too long
|
||||
if not SafePath.isAllowedLength "#{folder}/#{name}"
|
||||
return callback new Error.InvalidNameError("path too long")
|
||||
# # # check if the path would be too long
|
||||
# # if not SafePath.isAllowedLength "#{folder}/#{name}"
|
||||
# # return callback new Error.InvalidNameError("path too long")
|
||||
# check if the name is already taken by a doc, file or
|
||||
# folder. If so, return an error "file already exists".
|
||||
err = new Errors.InvalidNameError("file already exists")
|
||||
|
|
Loading…
Reference in a new issue