# HG changeset patch # User Kim Alvefur # Date 1618058703 -7200 # Node ID 2bd91d4a0fcf3735fd22c3318f57f7393bef0d5e # Parent a90389e7296cb4879e4afd5f1c02c62805875164 core.certmanager: Check for complete filename Prevents a false positive match on files with fullchain.pem as suffix diff -r a90389e7296c -r 2bd91d4a0fcf core/certmanager.lua --- a/core/certmanager.lua Wed May 05 16:25:33 2021 +0200 +++ b/core/certmanager.lua Sat Apr 10 14:45:03 2021 +0200 @@ -78,7 +78,7 @@ if crt_path == key_path then if key_path:sub(-4) == ".crt" then key_path = key_path:sub(1, -4) .. "key"; - elseif key_path:sub(-13) == "fullchain.pem" then + elseif key_path:sub(-14) == "/fullchain.pem" then key_path = key_path:sub(1, -14) .. "privkey.pem"; end end