Skip to content

Commit 78fab80

Browse files
AC-11662 CSP - improve script rendering
1 parent 0040897 commit 78fab80

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/PageBuilder/view/base/templates/googlemaps.phtml

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ $script = <<<SCRIPT
3535
}
3636
});
3737
SCRIPT;
38-
38+
// phpcs:ignore
3939
echo /* @noEscape */ $secureRenderer->renderTag('script', [], $script, false);
4040

4141
/** Include the googleMaps dependency only if we have an API key set, this removes unnecessary calls to Google */
@@ -51,5 +51,6 @@ if ($block->shouldIncludeGoogleMapsLibrary()) {
5151
});
5252
SCRIPT;
5353

54+
// phpcs:ignore
5455
echo /* @noEscape */ $secureRenderer->renderTag('script', [], $script, false);
5556
}

0 commit comments

Comments
 (0)