Explorar o código

fix infinite loop

Gildas %!s(int64=5) %!d(string=hai) anos
pai
achega
a22fa89127
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/single-file/single-file-core.js

+ 1 - 1
lib/single-file/single-file-core.js

@@ -448,7 +448,7 @@ class Processor {
 					charset = charsetDeclaration.split("=")[1].trim().toLowerCase();
 				}
 			});
-			if (charset && charset != content.charset) {
+			if (charset && charset.toLowerCase() != content.charset.toLowerCase()) {
 				return this.loadPage(pageContent, charset);
 			}
 		}