2526456 - Sales Campaign E-mail Template Cannot Contain <script> Tag. An error appears-HTML tag 'script' is not allowed

SAP Knowledge Base Article - Public

2526456 - Sales Campaign E-mail Template Cannot Contain <script> Tag. An error appears-HTML tag 'script' is not allowed

Symptom

While preparing a Sales Campaign you wish to upload an e-mail template. If the template was used with other systems or is a standalone they sometimes us Java script to work. This requires that the main html file for the template would have a <script> tag to run the Java script code. However this is a potential security issue as this would allow the introduction of unknown code into the system that could be potentially harmful. For this reason tags such as <script> and <audio> are not allowed for upload to the system.

Reproducing the Issue

  1. Go to the Sales Campaign Workcentre.
  2. Select Content View.
  3. Click New and select E-mail Template.
  4. Fill in the details and select Save and Open.
  5. Click Add in the top right corner of the Details facet.
  6. Select the HTML file to upload.
  7. The HTML file that is uploaded is scanned to ensure its integrity.
  8. if the file contains the <script> tag the error -- HTML tag 'script' is not allowed  -- appears.

Cause

This is a security precaution enforced by C4C to ensure the system cannot be compromised by 3rd party code.

Resolution

As a resolution it is advised to create a template that is not reliant on the <script> tag.

See Also

https://help.sap.com/viewer/1340e629029e49e2a5fd415e97d0189a/1708/en-US/16816fe1d6a04c9e87c50b8e9bad2e5e.html

Keywords

KBA , AP-RC-BCT , Business Config. Tools (SAP Business ByDesign , Product Enhancement

Product

SAP Hybris Cloud for Customer 1708