Skip to content

Commit 7917c70

Browse files
jlipkagithub-actions[bot]
authored andcommitted
fix(versioning): encode summary
The reason for creating a new version is now encoded in the URL. (cherry picked from commit 2dd870e)
1 parent 141b053 commit 7917c70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/core/data/version-history-data.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export class VersionHistoryDataService extends IdentifiableDataService<VersionHi
111111

112112
this.halService.getEndpoint(this.versionsEndpoint).pipe(
113113
take(1),
114-
map((endpointUrl: string) => (summary?.length > 0) ? `${endpointUrl}?summary=${summary}` : `${endpointUrl}`),
114+
map((endpointUrl: string) => (summary?.length > 0) ? `${endpointUrl}?summary=${encodeURIComponent(summary)}` : `${endpointUrl}`),
115115
find((href: string) => hasValue(href)),
116116
).subscribe((href) => {
117117
const request = new PostRequest(requestId, href, itemHref, requestOptions);

0 commit comments

Comments
 (0)