@@ -389,6 +389,9 @@ public class EditRepositoryDialog extends JDialog { | |||
error("Relative folder references (../) are prohibited."); | |||
return false; | |||
} | |||
if (rname.endsWith("/")) { | |||
rname = rname.substring(0, rname.length() - 1); | |||
} | |||
// confirm valid characters in repository name | |||
Character c = StringUtils.findInvalidCharacter(rname); |
@@ -212,6 +212,9 @@ public class EditRepositoryPage extends RootSubPage { | |||
if (repositoryModel.name.contains("/../")) { | |||
error(getString("gb.illegalRelativeSlash")); | |||
return; | |||
} | |||
if (repositoryModel.name.endsWith("/")) { | |||
repositoryModel.name = repositoryModel.name.substring(0, repositoryModel.name.length() - 1); | |||
} | |||
// confirm valid characters in repository name |