ui: replace raw API value 'unknown' with 'no entry' in HSTS preload output

This commit is contained in:
potato-20
2026-06-17 15:10:46 +05:30
parent 57fc5850d1
commit 391f6a6b2b
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ system("@args") == 0
$cat_csv=`cat $csv`; $cat_csv=`cat $csv`;
# example.com is not on the preload list # example.com is not on the preload list
like($cat_csv, qr/"HSTS_preloadlist".*"unknown"/,"\"$uri\" should not be on the HSTS preload list"); like($cat_csv, qr/"HSTS_preloadlist".*"no entry"/,"\"$uri\" should not be on the HSTS preload list");
$tests++; $tests++;
unlink $csv; unlink $csv;
+2 -2
View File
@@ -3078,8 +3078,8 @@ run_hsts() {
case "$(check_hsts_preloadlist_value "$NODE" "status")" in case "$(check_hsts_preloadlist_value "$NODE" "status")" in
"unknown") # Not found in the HSTS preload list "unknown") # Not found in the HSTS preload list
case "$preloadcombined" in case "$preloadcombined" in
"000" | "001" | "010" | "011") outln "unknown"; fileout "${jsonID}${json_postfix}" "INFO" "unknown" ;; "000" | "001" | "010" | "011") outln "no entry"; fileout "${jsonID}${json_postfix}" "INFO" "no entry" ;;
"100" | "101" | "110" | "111") pr_svrty_low "unknown"; outln " -- submit to HSTS preload list"; fileout "${jsonID}${json_postfix}" "LOW" "unknown" ;; "100" | "101" | "110" | "111") pr_svrty_low "no entry"; outln " -- submit to HSTS preload list"; fileout "${jsonID}${json_postfix}" "LOW" "no entry" ;;
esac esac
;; ;;
"pending") # Currently in the HSTS pending list "pending") # Currently in the HSTS pending list