Skip to content

Commit 65c1fd1

Browse files
committed
Update to jQuery 3.6.0
This covers the following GitHub security advisories: - GHSA-gxr4-xjj5-5px2 - GHSA-jpcq-cgw6-v4j6 - CVE-2019-11358 - CVE-2015-9251 The jQuery Migrate library is also added to maintain compatibility with the current Bootstrap version (2.0.4). Without the compatibility library, the following error occurs when dismissing an alert: Uncaught Error: Syntax error, unrecognized expression: # jQuery (7) close http://localhost:8888/static/js/bootstrap.js:7 jQuery (8) <anonymous> http://localhost:8888/static/js/bootstrap.js:7 jQuery (13) jquery-3.6.0.min.js:2:13639
1 parent bbffc51 commit 65c1fd1

File tree

8 files changed

+15
-16
lines changed

8 files changed

+15
-16
lines changed

cms/server/admin/templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<link rel="stylesheet" type="text/css" href="{{ url("static", "aws_style.css") }}">
88
<script src="{{ url("static", "web_rpc.js") }}"></script>
99
<script src="{{ url("static", "aws_utils.js") }}"></script>
10-
<script src="{{ url("static", "jq", "jquery-1.12.4.min.js") }}"></script>
10+
<script src="{{ url("static", "jq", "jquery-3.6.0.min.js") }}"></script>
1111
<script src="{{ url("static", "jq", "jquery.jqplot.min.js") }}"></script>
1212
<script src="{{ url("static", "jq", "jqplot.dateAxisRenderer.min.js") }}"></script>
1313
<script src="{{ url("static", "jq", "jqplot.enhancedLegendRenderer.min.js") }}"></script>

cms/server/contest/templates/base.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
<link rel="stylesheet" href="{{ url("static", "css", "bootstrap.css") }}">
1111
<link rel="stylesheet" href="{{ url("static", "cws_style.css") }}">
1212

13-
<script src="{{ url("static", "jq", "jquery-1.12.4.min.js") }}"></script>
13+
<script src="{{ url("static", "jq", "jquery-3.6.0.min.js") }}"></script>
14+
{# For compatibility with Bootstrap 2.x #}
15+
<script src="{{ url("static", "jq", "jquery-migrate-3.3.2.min.js") }}"></script>
1416
<script src="{{ url("static", "js", "bootstrap.js") }}"></script>
1517
<script src="{{ url("static", "cws_utils.js") }}"></script>
1618

cms/server/static/jq/jquery-1.12.4.min.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

cms/server/static/jq/jquery-3.6.0.min.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cms/server/static/jq/jquery-migrate-3.3.2.min.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmsranking/static/Ranking.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset='utf-8'/>
55
<link rel="shortcut icon" href="img/favicon.ico" />
66
<link rel='stylesheet' href='Ranking.css'>
7-
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
7+
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
88
<script>
99
if (typeof jQuery == 'undefined') {
1010
document.write(unescape("%3Cscript src='lib/jquery.js'%3E%3C/script%3E"));

cmsranking/static/lib/jquery.js

Lines changed: 2 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

debian/copyright

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Copyright: 2011-2012 Luca Wehrstedt <luca.wehrstedt@gmail.com>
1515
License: CC-BY-SA-3.0
1616

1717
Files: cmsranking/static/lib/jquery.js
18-
Copyright: 2016 jQuery Foundation and other contributors, http://jquery.org/
18+
Copyright: 2021 OpenJS Foundation and other contributors, http://jquery.org/
1919
License: Expat
2020
Comment: See http://jquery.org/license
2121

@@ -35,8 +35,9 @@ Copyright: 2008-2016 Dmitry Baranovskiy (http://raphaeljs.com)
3535
License: Expat and Apache-2.0
3636
Comment: See https://dmitrybaranovskiy.github.io/raphael/license.html
3737

38-
Files: cms/server/static/jq/jquery-1.12.4.min.js
39-
Copyright: 2016 jQuery Foundation and other contributors, http://jquery.org/
38+
Files: cms/server/static/jq/jquery-3.6.0.min.js
39+
cms/server/static/jq/jquery-migrate-3.3.2.min.js
40+
Copyright: 2021 OpenJS Foundation and other contributors, http://jquery.org/
4041
License: Expat
4142

4243
Files: cms/server/static/jq/jquery.jqplot*

0 commit comments

Comments
 (0)