error("Relative folder references (../) are prohibited.");\r
return false;\r
}\r
+ if (rname.endsWith("/")) {\r
+ rname = rname.substring(0, rname.length() - 1);\r
+ }\r
\r
// confirm valid characters in repository name\r
Character c = StringUtils.findInvalidCharacter(rname);\r
if (repositoryModel.name.contains("/../")) {\r
error(getString("gb.illegalRelativeSlash"));\r
return;\r
+ } \r
+ if (repositoryModel.name.endsWith("/")) {\r
+ repositoryModel.name = repositoryModel.name.substring(0, repositoryModel.name.length() - 1);\r
}\r
\r
// confirm valid characters in repository name\r