Last active
June 22, 2020 17:16
-
-
Save bokks/f78aad417855e559b342da8cc6fecb97 to your computer and use it in GitHub Desktop.
This is an encryption pattern that is useful for encryption of url literals in the jsp/html directly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* This pattern is useful when the url is a literal in the markup */ | |
/* Example 1 */ | |
/* Original */ | |
<td id="navigationTD" nowrap class="textCoverLabel" style="padding:0px 5px 0px 5px"> | |
<a href="<pega:reference name='pxRequestor.pxReqURI' mode='normal' />?pyActivity=Open&Action=Review&HarnessPurpose=Review&AllowInput=false&InsHandle=<%=tools.getStepPage().getInstanceHandle()%>" title="Open this" class="titleBarLink">Open Item</a></td> | |
</td> | |
/* Encryption notice how even dynamic parameters can be encrypted*/ | |
<td id="navigationTD" nowrap class="textCoverLabel" style="padding:0px 5px 0px 5px"> | |
<a href="<pega:reference name='pxRequestor.pxReqURI' mode='normal' />?<%=pega_rules_utilities.pzEncryptURLActionString(tools, "Thread","pyActivity=Open&Action=Review&HarnessPurpose=Review&AllowInput=false&InsHandle="+tools.getStepPage().getInstanceHandle())%>" title="Open this" class="titleBarLink">Open Item</a></td> | |
</td> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment