Skip to content

Commit b0b59f6

Browse files
authored
Merge pull request #4603 from DSpace/backport-4344-to-dspace-9_x
[Port dspace-9_x] fix(versioning): Encode summary
2 parents 3511ea0 + 7917c70 commit b0b59f6

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)