[java-identity-provider COMMIT] /trunk/idp-conf/src/main/resources/views/intercept/attribute-release.vm
noreply at shibboleth.net
noreply at shibboleth.net
Tue Oct 25 22:05:29 EDT 2016
Author: tzeller
Date: Tue Oct 25 22:05:29 2016
New Revision: 8545
URL: http://svn.shibboleth.net/view/java-identity-provider?rev=8545&view=rev
Log:
IDP-1027 - Replace $ with <br> by default but optionally
Modified:
trunk/idp-conf/src/main/resources/views/intercept/attribute-release.vm
Modified: trunk/idp-conf/src/main/resources/views/intercept/attribute-release.vm
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-conf/src/main/resources/views/intercept/attribute-release.vm?rev=8545&r1=8544&r2=8545&view=diff
==============================================================================
--- trunk/idp-conf/src/main/resources/views/intercept/attribute-release.vm (original)
+++ trunk/idp-conf/src/main/resources/views/intercept/attribute-release.vm Tue Oct 25 22:05:29 2016
@@ -22,6 +22,7 @@
#set ($privacyStatementURL = $rpUIContext.privacyStatementURL)
#set ($rpOrganizationLogo = $rpUIContext.getLogo())
#set ($rpOrganizationName = $rpUIContext.organizationName)
+#set ($replaceDollarWithNewline = true)
##
<!DOCTYPE html>
<html>
@@ -76,7 +77,11 @@
<td>$encoder.encodeForHTML($attributeDisplayNameFunction.apply($attribute))</td>
<td>
#foreach ($value in $attribute.values)
- <strong>$encoder.encodeForHTML($value.getDisplayValue())</strong>
+ #if ($replaceDollarWithNewline)
+ <strong>$encoder.encodeForHTML($value.getDisplayValue()).replaceAll($encoder.encodeForHTML("$"),"<br>")</strong>
+ #else
+ <strong>$encoder.encodeForHTML($value.getDisplayValue())</strong>
+ #end
<br>
#end
</td>
More information about the commits
mailing list