فهرست منبع

remove more invalid chars

Gildas 7 سال پیش
والد
کامیت
d347cf9e91
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      extension/core/bg/download.js

+ 1 - 1
extension/core/bg/download.js

@@ -45,7 +45,7 @@ singlefile.download = (() => {
 	return { downloadPage };
 
 	async function downloadPage(page, options) {
-		let filename = page.filename.replace(/[/\\?%*:|"<>\x7F]+/g, "_");
+		let filename = page.filename.replace(/[~/\\?%*:|"<>\x00-\x1f\x7F]+/g, "_");
 		if (filename.length > 128) {
 			filename = filename.replace(/\.html?$/, "").substring(0, 122) + "….html";
 		}