Skip to content

Commit

Permalink
fix(viewer): hash all parameters before sending get showimage request
Browse files Browse the repository at this point in the history
  • Loading branch information
icaparros-at-wiris authored and carla-at-wiris committed Jan 24, 2024
1 parent df24854 commit faaec77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/viewer/src/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export async function showImage(mml: string, lang: string, url: string, extensio
}

// Try to obtain the image via GET
const getParams = Parser.createShowImageSrcData({ mml }, lang);
const getParams = Parser.createShowImageSrcData(params);
const getResponse = callService(getParams, 'showimage', MethodType.Get, url, extension);
try {
return await processJsonResponse(getResponse);
Expand Down

0 comments on commit faaec77

Please sign in to comment.