Skip to content

Commit bf41bc4

Browse files
authored
Add nonces to all script tags (#275)
1 parent 8bb0e12 commit bf41bc4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+50
-48
lines changed

OpenLdapSync/resources/views/ldapSettings.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
if (LABKEY.Security.currentContainer.path != '/'){
44
Ext4.Msg.alert('Error', 'This page can only be viewed from the site root', function(){

SequenceAnalysis/resources/views/alignmentAnalysis.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

SequenceAnalysis/resources/views/alignmentImport.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

SequenceAnalysis/resources/views/bamHaplotype.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 outputFileIds = LABKEY.ActionURL.getParameter('outputFileIds');

SequenceAnalysis/resources/views/begin.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

SequenceAnalysis/resources/views/coverageDepth.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 outputFileIds = LABKEY.ActionURL.getParameter('outputFileIds') || '';

SequenceAnalysis/resources/views/fastaHelper.html

Lines changed: 6 additions & 4 deletions
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
function whitelist(){
44
var names = document.getElementById('whitelistNames').value;
@@ -34,10 +34,12 @@
3434
document.getElementById('whitelistTarget').value = toKeep.join('\n');
3535
}
3636

37-
37+
LABKEY.Utils.onReady(function(){
38+
document.getElementById('whitelistButton')['onclick'] = whitelist;
39+
});
3840
</script>
3941

40-
This page contains an several basic utilities to process FASTA files. See the instructions above each item for more information.
42+
This page contains several basic utilities to process FASTA files. See the instructions above each item for more information.
4143

4244
<p/>
4345
<h3>1) Subset FASTA Based on List</h3>
@@ -49,7 +51,7 @@ <h3>1) Subset FASTA Based on List</h3>
4951
<tr>
5052
<td>FASTA Contents:<span></span><br><textarea rows="10" cols="30" id="whitelistFasta"></textarea></td>
5153
<td>Allowable Names:<span></span><br><textarea rows="10" cols="30" id="whitelistNames"></textarea></td>
52-
<td><button id="whitelistButton" onclick=whitelist()>--></button></td>
54+
<td><button id="whitelistButton">--></button></td>
5355
<td>Matching Entries:<span></span><br><textarea rows="10" cols="30" id="whitelistTarget"></textarea></td>
5456
</tr>
5557
</table>

SequenceAnalysis/resources/views/haplotypeDetails.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 name = LABKEY.ActionURL.getParameter('haplotypeId');

SequenceAnalysis/resources/views/illuminaSampleSheetExport.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%>;

SequenceAnalysis/resources/views/importFasta.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 path = LABKEY.ActionURL.getParameter("path");

0 commit comments

Comments
 (0)