mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 07:55:47 +01:00
fix potential bugs
This commit is contained in:
@@ -220,13 +220,13 @@ public class RepositoryResource extends AbstractResource<Repository>
|
||||
|
||||
String ctxPath = request.getContextPath();
|
||||
|
||||
url.append(ctxPath);
|
||||
|
||||
if (ctxPath.endsWith("/"))
|
||||
{
|
||||
ctxPath = ctxPath.substring(0, ctxPath.length() - 1);
|
||||
}
|
||||
|
||||
url.append(ctxPath);
|
||||
|
||||
RepositoryHandler handler =
|
||||
repositoryManager.getHandler(repository.getType());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user