mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-05 21:15:43 +01:00
Encode branch in urls
This commit is contained in:
@@ -39,7 +39,7 @@ function createUrl(repository: Repository, revision: string, path: string) {
|
||||
|
||||
// TODO handle trailing slash
|
||||
const pathDefined = path ? path : "";
|
||||
return `${base}${revision}/${pathDefined}`;
|
||||
return `${base}${encodeURIComponent(revision)}/${pathDefined}`;
|
||||
}
|
||||
|
||||
export function fetchSourcesPending(
|
||||
|
||||
Reference in New Issue
Block a user