]> git.ipfire.org Git - thirdparty/dehydrated.git/commitdiff
added note about newline encoded in accounts directory hashes (resolves #730)
authorLukas Schauer <lukas@schauer.so>
Tue, 28 Apr 2020 19:00:47 +0000 (21:00 +0200)
committerLukas Schauer <lukas@schauer.so>
Tue, 28 Apr 2020 19:03:55 +0000 (21:03 +0200)
dehydrated

index b75a2e3b8a984b8f75a3c67949792880f0021857..fe00b3ec58fc4b35262a2c0daad955cec4c5702f 100755 (executable)
@@ -232,6 +232,10 @@ load_config() {
   fi
 
   # Create new account directory or symlink to account directory from old CA
+  # dev note: keep in mind that because of the use of 'echo' instead of 'printf' or
+  # similar there is a newline encoded in the directory name. not going to fix this
+  # since it's a non-issue and trying to fix existing installations would be too much
+  # trouble
   CAHASH="$(echo "${CA}" | urlbase64)"
   [[ -z "${ACCOUNTDIR}" ]] && ACCOUNTDIR="${BASEDIR}/accounts"
   if [[ ! -e "${ACCOUNTDIR}/${CAHASH}" ]]; then