英国网络安全局(cyber security agency)周三警告称,如果不删除Adobe Flash Player并在2020年12月31日过期(EoL)后继续使用该软件,可能会带来危险和复杂情况。
有问题的情况包括企业和其他网络,其中传统的web应用程序和桌面软件仍然存在使用Flash显示多媒体内容或支持诸如文件上载、文件资源管理器、加载屏幕等功能。
英国国家网络安全中心(NCSC)担心,一些系统管理员不顾网络安全,可能会做出错误的决定,并在这些应用程序中禁用更新机制或是网络浏览器,以便员工可以继续使用这些应用程序。
“我想说的是:在2020年之后,你不应该禁用浏览器和/或平台更新,以此作为继续使用Adobe Flash Player的一种方式,”。[NCSC强调]
“相反,我们鼓励您与供应商合作,消除闪存依赖。任何不愿意或不能这样做的供应商,他们自己都应该被视为有风险的https://support.sas.com/en/technical-support/services-policies/sas-software-and-its-use-with-Adobe-Flash.html“target=”noopener noreferrer nofollow“data component=”externalLink“>SAS,Citrix,attracte,其他公司已经发布了更新和客户指南,为闪存下线做准备。其他人可能没有,系统管理员可能需要干预并从他们的网络中删除该软件,并找到一个无闪存的替代品。
但是如果有一件事IT管理员不能说的话,那就是他们被意外地带走了。Adobe给了公司三年的时间来准备flasheol,具有于2017年首次发布该产品。
浏览器制造商如Apple,谷歌,Microsoft,和Mozilla都宣布,他们还计划通过到2020年底或2021年1月下旬,在他们的产品中播放任何Flash内容都是不可能的https://www.adobe.com/products/flashplayer/end-of-life.html“target=”noopener noreferrer nofollow“data component=”externalLink“>闪存下线页面,Adobe自己也要求公司积极应对EOL,甚至在今年年底之前就将软件删除,甚至计划在今年晚些时候手动提示用户卸载Fash
这是NCSC第二次向英国IT管理员发出关于即将下线的软件应用程序的警告。该机构在2019年8月发布了类似的警告,敦促软件开发人员将他们的代码迁移到Python3.x,因为Python2.x分支已接近预定的1月1日下线日期,2020年。
Twitter删除了130个试图扰乱美国总统辩论的伊朗账户
windows xp泄漏已确认在用户将泄漏的代码编译到一个工作的操作系统之后
a, .nav-item > a, .dropdown-menu a');
allLinks.forEach(link => {
let href = link.getAttribute('href');
if (!href || href === '#' || href === 'javascript:;') return;
// 4. 提取菜单中的核心路径
// 例如 /articles.html -> articles
let cleanHref = href.replace(/^\/|\/$/g, '').replace(/\.(html|php)$/, '').toLowerCase();
let isMatch = false;
// 5. 精确匹配逻辑
if (cleanHref === 'index') {
// 只有当前是首页时,才高亮首页
if (cleanPath === 'index') isMatch = true;
} else {
// 如果当前路径完全等于菜单路径 (如 /articles 匹配 /articles)
// 或者当前路径以 "菜单路径/" 开头 (如 /articles/154 匹配 /articles)
// 或者当前路径包含 "菜单路径." (防某些带点号的特殊情况)
if (cleanPath === cleanHref || cleanPath.startsWith(cleanHref + '/')) {
isMatch = true;
}
}
// 6. 如果匹配成功,加上高亮
if (isMatch) {
link.classList.add('active');
// 如果匹配的是下拉菜单里的子项,顺便把它的父级分类也高亮
const parentNavItem = link.closest('.nav-item');
if (parentNavItem && !parentNavItem.classList.contains('active')) {
const parentLink = parentNavItem.querySelector('a');
if (parentLink) parentLink.classList.add('active');
}
}
});
})();
// ================= 移动端菜单逻辑 =================
const toggle = document.getElementById("menuToggle");
const nav = document.getElementById("navLinks");
// 1. 汉堡按钮:切换主菜单显示/隐藏
if (toggle && nav) {
toggle.addEventListener("click", function (e) {
e.stopPropagation();
const expanded = this.getAttribute("aria-expanded") === "true";
this.setAttribute("aria-expanded", String(!expanded));
nav.classList.toggle("active");
});
}
// 2. 处理下拉子菜单的展开/折叠
if (window.innerWidth <= 768) {
const navItems = document.querySelectorAll(".nav-item");
navItems.forEach((item) => {
const titleLink = item.querySelector("a");
const dropdownMenu = item.querySelector(".dropdown-menu");
const arrowIcon = item.querySelector(".arrow-icon");
if (titleLink && dropdownMenu) {
titleLink.addEventListener("click", function (e) {
e.preventDefault(); // 阻止链接跳转
e.stopPropagation();
// 手风琴效果:收起其他已展开的菜单
navItems.forEach((otherItem) => {
if (otherItem !== item) {
const otherMenu = otherItem.querySelector(".dropdown-menu");
const otherArrow = otherItem.querySelector(".arrow-icon");
if (otherMenu) otherMenu.classList.remove("active");
if (otherArrow) otherArrow.style.transform = "rotate(0)";
}
});
// 切换当前菜单
dropdownMenu.classList.toggle("active");
if (arrowIcon) {
arrowIcon.style.transform = dropdownMenu.classList.contains(
"active",
)
? "rotate(180deg)"
: "rotate(0)";
}
});
}
});
}
// 3. 点击普通菜单项后,自动关闭整个主菜单
if (nav) {
nav.querySelectorAll("a").forEach(function (link) {
if (!link.querySelector(".arrow-icon")) {
link.addEventListener("click", function () {
nav.classList.remove("active");
if (toggle) toggle.setAttribute("aria-expanded", "false");
});
}
});
}
// ================= 返回顶部逻辑 =================
(function () {
const backToTop = document.getElementById("backToTop");
window.addEventListener("scroll", function () {
if (window.scrollY > 300) {
backToTop.classList.add("show");
} else {
backToTop.classList.remove("show");
}
});
backToTop.addEventListener("click", function () {
window.scrollTo({ top: 0, behavior: "smooth" });
});
})();
// 多语言
document.addEventListener("DOMContentLoaded", function() {
let path = window.location.pathname;
let isEn = path.startsWith('/en/');
if (isEn) {
document.cookie = "my_lang=en; path=/; max-age=" + (30 * 24 * 3600);
} else {
document.cookie = "my_lang=zh; path=/; max-age=" + (30 * 24 * 3600);
}
// 【2. 首页记忆】如果访问的是首页(没带 en),但记忆是英文,前端自动跳去英文首页
if (!isEn && (path === '/' || path === '/index.html')) {
if (document.cookie.includes('my_lang=en')) {
window.location.replace('/en' + path);
return;
}
}
// 【3. 菜单不掉线】如果是英文页面,自动给菜单链接加上 /en/
if (isEn) {
document.querySelectorAll('a').forEach(function(link) {
let href = link.getAttribute('href');
// 站内链接,且没带 /en/
if (href && href.startsWith('/') && !href.startsWith('/en/') && !href.startsWith('http')) {
link.setAttribute('href', '/en' + href);
}
});
}
});