Author: Sara Golemon (sgolemon)
Date: 2021-10-05T15:52:03Z

Commit: 
https://github.com/php/web-php/commit/be4d00bda4a4337e957d3d233366c91a18e023d3
Raw diff: 
https://github.com/php/web-php/commit/be4d00bda4a4337e957d3d233366c91a18e023d3.diff

Add integrity check to inclusion of jquery.min.js and explicitly use https

Changed paths:
  M  include/footer.inc


Diff:

diff --git a/include/footer.inc b/include/footer.inc
index 826795749..6161365b1 100644
--- a/include/footer.inc
+++ b/include/footer.inc
@@ -85,7 +85,7 @@
     ?>
 
  <!-- External and third party libraries. -->
- <script 
src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
+ <script 
src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"; 
integrity="sha384-aBL3Lzi6c9LNDGvpHkZrrm3ZVsIwohDD7CDozL0pk8FwCrfmV7H9w8j3L7ikEv6h"
 crossorigin="anonymous"></script>
 <?php
  $jsfiles = array("ext/modernizr.js", "ext/hogan-2.0.0.min.js", 
"ext/typeahead.min.js", "ext/mousetrap.min.js", "search.js", "common.js");
  foreach ($jsfiles as $filename) {

-- 
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to