Repository: qpid-site Updated Branches: refs/heads/asf-site 79eb6b382 -> 686c59e50
Move javascript to deferred.js as per Justins review comments Project: http://git-wip-us.apache.org/repos/asf/qpid-site/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-site/commit/d1372781 Tree: http://git-wip-us.apache.org/repos/asf/qpid-site/tree/d1372781 Diff: http://git-wip-us.apache.org/repos/asf/qpid-site/diff/d1372781 Branch: refs/heads/asf-site Commit: d1372781e916f73b5986fc860bf04d7b1c746da0 Parents: 79eb6b3 Author: Lorenz Quack <[email protected]> Authored: Mon Jun 6 09:17:46 2016 +0100 Committer: Lorenz Quack <[email protected]> Committed: Mon Jun 6 09:17:46 2016 +0100 ---------------------------------------------------------------------- input/_transom_template.html | 1 - input/components/cpp-broker/security.md | 8 ++++---- input/components/java-broker/security.md | 4 ++-- input/deferred.js | 12 ++++++++++++ input/site.js | 11 ----------- 5 files changed, 18 insertions(+), 18 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-site/blob/d1372781/input/_transom_template.html ---------------------------------------------------------------------- diff --git a/input/_transom_template.html b/input/_transom_template.html index 71aa813..5cf23ac 100644 --- a/input/_transom_template.html +++ b/input/_transom_template.html @@ -28,7 +28,6 @@ <link rel="stylesheet" href="{{site_url}}/deferred.css" type="text/css" defer="defer"/> <script type="text/javascript">var _deferredFunctions = [];</script> <script type="text/javascript" src="{{site_url}}/deferred.js" defer="defer"></script> - <script type="text/javascript" src="{{site_url}}/site.js" defer="defer"></script> <!--[if lte IE 8]> <link rel="stylesheet" href="{{site_url}}/ie.css" type="text/css"/> <script type="text/javascript" src="{{site_url}}/html5shiv.js"></script> http://git-wip-us.apache.org/repos/asf/qpid-site/blob/d1372781/input/components/cpp-broker/security.md ---------------------------------------------------------------------- diff --git a/input/components/cpp-broker/security.md b/input/components/cpp-broker/security.md index 8dd34d2..5c80935 100644 --- a/input/components/cpp-broker/security.md +++ b/input/components/cpp-broker/security.md @@ -36,7 +36,7 @@ <td>0.30 and earlier</td> <td>0.32 and later</td> <td>qpidd can be crashed by unauthenticated user - <a id="CVE_2015_0224_details_toggle" href="javascript:toggleDiv({divId:'CVE_2015_0224_details', controlId:'CVE_2015_0224_details_toggle', showMore:'<small>show more</small>', showLess:'<small>show less</small>'});"><small>show more</small></a> + <a id="CVE_2015_0224_details_toggle" href="javascript:_toggleDiv({divId:'CVE_2015_0224_details', controlId:'CVE_2015_0224_details_toggle', showMore:'<small>show more</small>', showLess:'<small>show less</small>'});"><small>show more</small></a> <div style="display:none;" id="CVE_2015_0224_details"> <p>Description: In CVE-2015-0203 it was announced that certain unexpected protocol sequences cause the broker @@ -71,7 +71,7 @@ <td>0.30 and earlier</td> <td>0.32 and later</td> <td>anonymous access to qpidd cannot be prevented - <a id="CVE_2015_0223_details_toggle" href="javascript:toggleDiv({divId:'CVE_2015_0223_details', controlId:'CVE_2015_0223_details_toggle', showMore:'<small>show more</small>', showLess:'<small>show less</small>'});"><small>show more</small></a> + <a id="CVE_2015_0223_details_toggle" href="javascript:_toggleDiv({divId:'CVE_2015_0223_details', controlId:'CVE_2015_0223_details_toggle', showMore:'<small>show more</small>', showLess:'<small>show less</small>'});"><small>show more</small></a> <div style="display:none;" id="CVE_2015_0223_details"> <p>Description: An attacker can gain access to qpidd as an anonymous user, even if the ANONYMOUS mechanism is @@ -99,7 +99,7 @@ <td>0.30 and earlier</td> <td>0.32 and later</td> <td>qpidd can be crashed by authenticated user - <a id="CVE_2015_0203_details_toggle" href="javascript:toggleDiv({divId:'CVE_2015_0203_details', controlId:'CVE_2015_0203_details_toggle', showMore:'<small>show more</small>', showLess:'<small>show less</small>'});"><small>show more</small></a> + <a id="CVE_2015_0203_details_toggle" href="javascript:_toggleDiv({divId:'CVE_2015_0203_details', controlId:'CVE_2015_0203_details_toggle', showMore:'<small>show more</small>', showLess:'<small>show less</small>'});"><small>show more</small></a> <div style="display:none;" id="CVE_2015_0203_details"> <p>Description: Certain unexpected protocol sequences cause the broker process to crash due to insufficient @@ -148,7 +148,7 @@ <td>0.30 and earlier</td> <td>0.32 and later</td> <td>qpidd can be induced to make http requests - <a id="CVE_2014_3629_details_toggle" href="javascript:toggleDiv({divId:'CVE_2014_3629_details', controlId:'CVE_2014_3629_details_toggle', showMore:'<small>show more</small>', showLess:'<small>show less</small>'});"><small>show more</small></a> + <a id="CVE_2014_3629_details_toggle" href="javascript:_toggleDiv({divId:'CVE_2014_3629_details', controlId:'CVE_2014_3629_details_toggle', showMore:'<small>show more</small>', showLess:'<small>show less</small>'});"><small>show more</small></a> <div style="display:none;" id="CVE_2014_3629_details"> <p>Description: The XML exchange type is an optional, dynamically loaded module for qpidd that allows creation of http://git-wip-us.apache.org/repos/asf/qpid-site/blob/d1372781/input/components/java-broker/security.md ---------------------------------------------------------------------- diff --git a/input/components/java-broker/security.md b/input/components/java-broker/security.md index 8f3ad91..6ac1d92 100644 --- a/input/components/java-broker/security.md +++ b/input/components/java-broker/security.md @@ -38,7 +38,7 @@ <td>6.0.2 and earlier</td> <td><a href="{{site_url}}/releases/qpid-java-6.0.3/">6.0.3</a></td> <td> - Authentication Bypass. <a id="CVE_2016_4432_details_toggle" href="javascript:toggleDiv({divId:'CVE_2016_4432_details', controlId:'CVE_2016_4432_details_toggle', showMore:'<small>show more</small>', showLess:'<small>show less</small>'});"><small>show more</small></a> + Authentication Bypass. <a id="CVE_2016_4432_details_toggle" href="javascript:_toggleDiv({divId:'CVE_2016_4432_details', controlId:'CVE_2016_4432_details_toggle', showMore:'<small>show more</small>', showLess:'<small>show less</small>'});"><small>show more</small></a> <div style="display:none;" id="CVE_2016_4432_details"> <p>Versions Affected: Qpid Java Broker versions 6.0.2 and earlier</p> @@ -76,7 +76,7 @@ <td><a href="{{site_url}}/releases/qpid-java-6.0.3/">6.0.3</a></td> <td> Denial of Service. - <a id="CVE_2016_3094_details_toggle" href="javascript:toggleDiv({divId:'CVE_2016_3094_details', controlId:'CVE_2016_3094_details_toggle', showMore:'<small>show more</small>', showLess:'<small>show less</small>'});"><small>show more</small></a> + <a id="CVE_2016_3094_details_toggle" href="javascript:_toggleDiv({divId:'CVE_2016_3094_details', controlId:'CVE_2016_3094_details_toggle', showMore:'<small>show more</small>', showLess:'<small>show less</small>'});"><small>show more</small></a> <div style="display:none;" id="CVE_2016_3094_details"> <p>Versions Affected: Qpid Java Broker versions 6.0.0, 6.0.1, and 6.0.2</p> http://git-wip-us.apache.org/repos/asf/qpid-site/blob/d1372781/input/deferred.js ---------------------------------------------------------------------- diff --git a/input/deferred.js b/input/deferred.js index c7c324a..aac120c 100644 --- a/input/deferred.js +++ b/input/deferred.js @@ -420,6 +420,18 @@ function _modifyCurrentReleaseLinks() { } } +function _toggleDiv(toggleInfo) { + var div = document.getElementById(toggleInfo.divId); + var control = document.getElementById(toggleInfo.controlId); + if (div.style.display !== "none") { + div.style.display = "none"; + control.innerHTML = toggleInfo.showMore; + } else { + div.style.display = "block"; + control.innerHTML = toggleInfo.showLess; + } +} + _updateGlobalNavigation(); _addEventListener("-menu-link", "click", _toggleMenu); http://git-wip-us.apache.org/repos/asf/qpid-site/blob/d1372781/input/site.js ---------------------------------------------------------------------- diff --git a/input/site.js b/input/site.js index c4417ff..e69de29 100644 --- a/input/site.js +++ b/input/site.js @@ -1,11 +0,0 @@ -function toggleDiv(toggleInfo) { - var div=document.getElementById(toggleInfo.divId); - var control=document.getElementById(toggleInfo.controlId); - if (div.style.display !== 'none') { - div.style.display = 'none'; - control.innerHTML = toggleInfo.showMore; - } else { - div.style.display = 'block'; - control.innerHTML = toggleInfo.showLess; - } -} --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
