Explorar el Código

don't save passwords

Former-commit-id: 1eb449c1eabf75e0a7b0158973b270116c8edc93
Gildas hace 6 años
padre
commit
28e857058e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/single-file/single-file-helper.js

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

@@ -350,7 +350,7 @@ this.singlefile.lib.helper = this.singlefile.lib.helper || (() => {
 	}
 
 	function saveInputValues(doc) {
-		doc.querySelectorAll("input").forEach(input => input.setAttribute(INPUT_VALUE_ATTRIBUTE_NAME, input.value));
+		doc.querySelectorAll("input:not([type=password])").forEach(input => input.setAttribute(INPUT_VALUE_ATTRIBUTE_NAME, input.value));
 		doc.querySelectorAll("input[type=radio], input[type=checkbox]").forEach(input => input.setAttribute(INPUT_VALUE_ATTRIBUTE_NAME, input.checked));
 		doc.querySelectorAll("textarea").forEach(textarea => textarea.setAttribute(INPUT_VALUE_ATTRIBUTE_NAME, textarea.value));
 		doc.querySelectorAll("select").forEach(select => {