openoffice-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject svn commit: r1843855 - /openoffice/ooo-site/trunk/content/download/download.js
Date Sun, 14 Oct 2018 17:32:37 GMT
Author: marcus
Date: Sun Oct 14 17:32:37 2018
New Revision: 1843855

URL: http://svn.apache.org/viewvc?rev=1843855&view=rev
Log:
Fixed errors for SHA512 links

Modified:
    openoffice/ooo-site/trunk/content/download/download.js

Modified: openoffice/ooo-site/trunk/content/download/download.js
URL: http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/content/download/download.js?rev=1843855&r1=1843854&r2=1843855&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/download.js (original)
+++ openoffice/ooo-site/trunk/content/download/download.js Sun Oct 14 17:32:37 2018
@@ -823,12 +823,12 @@ DL.getLinkSelection = function() {
 		DL.LINK_CHK_KEYS	= DL.ASF_DIST + "KEYS";
 		DL.LINK_CHK_ASC_FULL    = DL.ASF_ARC_BASE_URL + "/binaries/" + DL.LANG_SEL + "/" + DL.FILENAME_FULL
+ ".asc";
 		DL.LINK_CHK_SHA256_FULL = DL.ASF_ARC_BASE_URL + "/binaries/" + DL.LANG_SEL + "/" + DL.FILENAME_FULL
+ ".sha256";
-		DL.LINK_CHK_SHA512_FULL = DL.ASF_ARC_BASE_URL + "/binaries/" + DL.LANG_SEL + "/" + DL.FILENAME_FULL
+ ".sha512";
+//		DL.LINK_CHK_SHA512_FULL = DL.ASF_ARC_BASE_URL + "/binaries/" + DL.LANG_SEL + "/" + DL.FILENAME_FULL
+ ".sha512";
 //		DL.LINK_CHK_MD5_FULL    = DL.ASF_ARC_BASE_URL + "/binaries/" + DL.LANG_SEL + "/" + DL.FILENAME_FULL
+ ".md5";
 
 		DL.LINK_CHK_ASC_LP	= DL.ASF_ARC_BASE_URL + "/binaries/" + DL.LANG_SEL + "/" + DL.FILENAME_LP
  + ".asc";
 		DL.LINK_CHK_SHA256_LP	= DL.ASF_ARC_BASE_URL + "/binaries/" + DL.LANG_SEL + "/" + DL.FILENAME_LP
  + ".sha256";
-		DL.LINK_CHK_SHA512_LP	= DL.ASF_ARC_BASE_URL + "/binaries/" + DL.LANG_SEL + "/" + DL.FILENAME_LP
  + ".sha512";
+//		DL.LINK_CHK_SHA512_LP	= DL.ASF_ARC_BASE_URL + "/binaries/" + DL.LANG_SEL + "/" + DL.FILENAME_LP
  + ".sha512";
 //		DL.LINK_CHK_MD5_LP	= DL.ASF_ARC_BASE_URL + "/binaries/" + DL.LANG_SEL + "/" + DL.FILENAME_LP
  + ".md5";
 
 		// Indicate that a download will successfull.
@@ -879,10 +879,10 @@ DL.getLinkSelection = function() {
 		document.getElementById( "dl_f_chk_sha256"  ).href	= DL.LINK_CHK_SHA256_FULL;
 		document.getElementById( "dl_f_chk_sha256"  ).innerHTML	= l10n.dl_checksum_sha256_text;
 		document.getElementById( "dl_f_chk_sha256"  ).title	= l10n.dl_checksum_sha256_title + DL.FILENAME_FULL;
-		document.getElementById( "space3"	    ).innerHTML	= " , ";
-		document.getElementById( "dl_f_chk_sha512"  ).href	= DL.LINK_CHK_SHA512_FULL;
-		document.getElementById( "dl_f_chk_sha512"  ).innerHTML	= l10n.dl_checksum_sha512_text;
-		document.getElementById( "dl_f_chk_sha512"  ).title	= l10n.dl_checksum_sha512_title + DL.FILENAME_FULL;
+//		document.getElementById( "space3"	    ).innerHTML	= " , ";
+//		document.getElementById( "dl_f_chk_sha512"  ).href	= DL.LINK_CHK_SHA512_FULL;
+//		document.getElementById( "dl_f_chk_sha512"  ).innerHTML	= l10n.dl_checksum_sha512_text;
+//		document.getElementById( "dl_f_chk_sha512"  ).title	= l10n.dl_checksum_sha512_title +
DL.FILENAME_FULL;
 //		document.getElementById( "space4"	    ).innerHTML	= " , ";
 //		document.getElementById( "dl_f_chk_md5"	    ).href	= DL.LINK_CHK_MD5_FULL;
 //		document.getElementById( "dl_f_chk_md5"	    ).innerHTML	= l10n.dl_checksum_md5_text;
@@ -904,10 +904,10 @@ DL.getLinkSelection = function() {
 		document.getElementById( "dl_lp_chk_sha256" ).href	= DL.LINK_CHK_SHA256_LP;
 		document.getElementById( "dl_lp_chk_sha256" ).innerHTML	= l10n.dl_checksum_sha256_text;
 		document.getElementById( "dl_lp_chk_sha256" ).title	= l10n.dl_checksum_sha256_title + DL.FILENAME_LP;
-		document.getElementById( "space7"	    ).innerHTML	= " , ";
-		document.getElementById( "dl_lp_chk_sha512" ).href	= DL.LINK_CHK_SHA512_LP;
-		document.getElementById( "dl_lp_chk_sha512" ).innerHTML	= l10n.dl_checksum_sha512_text;
-		document.getElementById( "dl_lp_chk_sha512" ).title	= l10n.dl_checksum_sha512_title + DL.FILENAME_LP;
+//		document.getElementById( "space7"	    ).innerHTML	= " , ";
+//		document.getElementById( "dl_lp_chk_sha512" ).href	= DL.LINK_CHK_SHA512_LP;
+//		document.getElementById( "dl_lp_chk_sha512" ).innerHTML	= l10n.dl_checksum_sha512_text;
+//		document.getElementById( "dl_lp_chk_sha512" ).title	= l10n.dl_checksum_sha512_title +
DL.FILENAME_LP;
 //		document.getElementById( "space8"	    ).innerHTML	= " , ";
 //		document.getElementById( "dl_lp_chk_md5"    ).href	= DL.LINK_CHK_MD5_LP;
 //		document.getElementById( "dl_lp_chk_md5"    ).innerHTML	= l10n.dl_checksum_md5_text;
@@ -936,25 +936,43 @@ DL.getLinkSelection = function() {
 		// New Apache release policy since March 2018: Do not provide any MD5 checksums anymore
as it is understood as too insecure.
 		if( ( DL.VERSION_SEL === "4.1.6" || DL.VERSION_SEL === "4.2.0" ) ) {
 			// If version is '4.1.6' (or newer), do not show any MD5 checksum file links.
+			document.getElementById( "space3"	    ).innerHTML	= " , ";
+			document.getElementById( "dl_f_chk_sha512"  ).href	= DL.LINK_CHK_SHA512_FULL;
+			document.getElementById( "dl_f_chk_sha512"  ).innerHTML	= l10n.dl_checksum_sha512_text;
+			document.getElementById( "dl_f_chk_sha512"  ).title	= l10n.dl_checksum_sha512_title +
DL.FILENAME_FULL;
 			document.getElementById( "space4"	    ).innerHTML	= "";
 			document.getElementById( "dl_f_chk_md5"	    ).href	= "";
 			document.getElementById( "dl_f_chk_md5"	    ).innerHTML	= "";
 			document.getElementById( "dl_f_chk_md5"	    ).title	= "";
 
+			document.getElementById( "space7"	    ).innerHTML	= " , ";
+			document.getElementById( "dl_lp_chk_sha512" ).href	= DL.LINK_CHK_SHA512_LP;
+			document.getElementById( "dl_lp_chk_sha512" ).innerHTML	= l10n.dl_checksum_sha512_text;
+			document.getElementById( "dl_lp_chk_sha512" ).title	= l10n.dl_checksum_sha512_title +
DL.FILENAME_LP;
 			document.getElementById( "space8"	    ).innerHTML	= "";
 			document.getElementById( "dl_lp_chk_md5"    ).href	= "";
 			document.getElementById( "dl_lp_chk_md5"    ).innerHTML	= "";
 			document.getElementById( "dl_lp_chk_md5"    ).title	= "";
 		} else {
 			// If version is '4.1.5' (or older), it's OK to show the MD5 checksum file links.
-			DL.LINK_CHK_MD5_FULL = DL.ASF_ARC_BASE_URL + "/binaries/" + DL.LANG_SEL + "/" + DL.FILENAME_FULL
+ ".md5";
-			DL.LINK_CHK_MD5_LP   = DL.ASF_ARC_BASE_URL + "/binaries/" + DL.LANG_SEL + "/" + DL.FILENAME_LP
  + ".md5";
-
+			DL.LINK_CHK_SHA512_FULL	= DL.ASF_ARC_BASE_URL + "/binaries/" + DL.LANG_SEL + "/" + DL.FILENAME_FULL
+ ".sha512";
+			DL.LINK_CHK_SHA512_LP	= DL.ASF_ARC_BASE_URL + "/binaries/" + DL.LANG_SEL + "/" + DL.FILENAME_LP
  + ".sha512";
+			DL.LINK_CHK_MD5_FULL	= DL.ASF_ARC_BASE_URL + "/binaries/" + DL.LANG_SEL + "/" + DL.FILENAME_FULL
+ ".md5";
+			DL.LINK_CHK_MD5_LP	= DL.ASF_ARC_BASE_URL + "/binaries/" + DL.LANG_SEL + "/" + DL.FILENAME_LP
  + ".md5";
+
+			document.getElementById( "space3"	    ).innerHTML	= "";
+			document.getElementById( "dl_f_chk_sha512"  ).href	= "";
+			document.getElementById( "dl_f_chk_sha512"  ).innerHTML	= "";
+			document.getElementById( "dl_f_chk_sha512"  ).title	= "";
 			document.getElementById( "space4"	    ).innerHTML	= " , ";
 			document.getElementById( "dl_f_chk_md5"	    ).href	= DL.LINK_CHK_MD5_FULL;
 			document.getElementById( "dl_f_chk_md5"	    ).innerHTML	= l10n.dl_checksum_md5_text;
 			document.getElementById( "dl_f_chk_md5"	    ).title	= l10n.dl_checksum_md5_title + DL.FILENAME_FULL;
 
+			document.getElementById( "space7"	    ).innerHTML	= "";
+			document.getElementById( "dl_lp_chk_sha512" ).href	= "";
+			document.getElementById( "dl_lp_chk_sha512" ).innerHTML	= "";
+			document.getElementById( "dl_lp_chk_sha512" ).title	= "";
 			document.getElementById( "space8"	    ).innerHTML	= " , ";
 			document.getElementById( "dl_lp_chk_md5"    ).href	= DL.LINK_CHK_MD5_LP;
 			document.getElementById( "dl_lp_chk_md5"    ).innerHTML	= l10n.dl_checksum_md5_text;



Mime
View raw message