소스 검색

don't save passwords

Former-commit-id: 1eb449c1eabf75e0a7b0158973b270116c8edc93
Gildas 6 년 전
부모
커밋
28e857058e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 => {