luci-app-bmx7: Code quality fixes
authorPaul Donald <newtwen@gmail.com>
Tue, 30 Jan 2024 18:38:01 +0000 (19:38 +0100)
committerPaul Donald <newtwen@gmail.com>
Wed, 31 Jan 2024 01:54:58 +0000 (02:54 +0100)
Add integrity check for externally loaded d3 lib

Signed-off-by: Paul Donald <newtwen@gmail.com>
applications/luci-app-bmx7/root/usr/lib/lua/luci/view/bmx7/topology.htm

index 58ce9fdbf03e4a3328428053f832172266913834..4a688bde61e31f385fe8035f01bdc9f44edf977b 100644 (file)
@@ -1,5 +1,5 @@
 <%+header%>
-<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.12/d3.min.js"></script>
+<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.12/d3.min.js" integrity="sha512-uy3foVtL4u0+5430l7zZt4PHjVtICfrbu3mtzdanR425sKD7kS5264djeZAzNIV0l4vc1QkFpW2+G5i5KoJIFQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
 <script type="text/javascript" src="<%=resource%>/bmx7/js/netjsongraph.js"></script>
 
 <link href="<%=resource%>/bmx7/css/netjsongraph.css" rel="stylesheet">