Skip to content

Commit 7da2645

Browse files
authored
Add nonces to script tags (#187)
1 parent 1f420dc commit 7da2645

33 files changed

+33
-33
lines changed

LDK/resources/views/apiBulkEdit.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script type="text/javascript">
1+
<script type="text/javascript" nonce="<%=scriptNonce%>">
22
Ext4.onReady(function(){
33
Ext4.define('LDK.panel.BulkUpdatePanel', {
44
extend: 'Ext.form.Panel',

LDK/resources/views/calendar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script type="text/javascript">
1+
<script type="text/javascript" nonce="<%=scriptNonce%>">
22
Ext4.onReady(function(){
33
// This is an example calendar store that enables event color-coding
44
this.calendarStore = Ext4.create('Ext.calendar.data.MemoryCalendarStore', {

LDK/resources/views/folderSizeSummary.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script type="text/javascript">
1+
<script type="text/javascript" nonce="<%=scriptNonce%>">
22
Ext4.onReady(function(){
33
var webpart = <%=webpartContext%>;
44
Ext4.define('LDK.panel.FolderSizeSummaryPanel', {

LDK/resources/views/manageRecord.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script type="text/javascript">
1+
<script type="text/javascript" nonce="<%=scriptNonce%>">
22

33
Ext4.onReady(function(){
44
var webpart = <%=webpartContext%>;

LDK/resources/views/notificationAdmin.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script type="text/javascript">
1+
<script type="text/javascript" nonce="<%=scriptNonce%>">
22
Ext4.onReady(function(){
33
var webpart = <%=webpartContext%>;
44
Ext4.create('LDK.panel.NotificationAdminPanel', {}).render(webpart.wrapperDivId);

LDK/resources/views/notificationSiteAdmin.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script type="text/javascript">
1+
<script type="text/javascript" nonce="<%=scriptNonce%>">
22
Ext4.onReady(function(){
33
LABKEY.Ajax.request({
44
url : LABKEY.ActionURL.buildURL('ldk', 'getSiteNotificationDetails', '/'),

LDK/resources/views/runCustomSql.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script type="text/javascript">
1+
<script type="text/javascript" nonce="<%=scriptNonce%>">
22

33
Ext4.onReady(function(){
44
var webpart = <%=webpartContext%>;

LDK/resources/views/setRedirectUrl.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script type="text/javascript">
1+
<script type="text/javascript" nonce="<%=scriptNonce%>">
22

33
Ext4.onReady(function(){
44
var webpart = <%=webpartContext%>;

LDK/resources/views/unitTest.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script type="text/javascript">
1+
<script type="text/javascript" nonce="<%=scriptNonce%>">
22
LABKEY.requiresCss("laboratory/Ext.ux.UnitTest.css");
33
LABKEY.requiresScript("/laboratory/Ext.ux.UnitTest.js");
44

LDK/test/src/org/labkey/test/tests/external/labModules/LabModulesTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ public void testSteps() throws Exception
242242
protected void setUpTest() throws Exception
243243
{
244244
goToHome();
245-
beginAt("/project/shared/begin.view");
245+
beginAt("/shared/project-begin.view");
246246
_containerHelper.enableModule("Laboratory");
247247
goToHome();
248248

0 commit comments

Comments
 (0)